Stuck in small window......

D

David

Hi,

I have a page which lists data via asp & database.
Against each record is a text link. This link opens a window, sized by
a Javascript function in the link code.

Problem: All further links from other pages/buttons etc, cause the
pages to be displayed in the same sized window.
How can I close the small window and open the next links in full sized
windows...this is really annoying.

The size function is only called once from the first page

<script LANGUAGE="JavaScript">
<!--//
function NewWindow(pagename, pwidth, pheight) {
if (!pwidth) {
pwidth = 600
}
if (!pheight) {
pheight = 480
}
msgWindow=window.open(pagename,"quality","toolbar=no,width=" + pwidth
+ ",height=" + pheight +
",directories=no,status=no,scrollbars=no,resizable=no,menubar=no,
align = center");
}
//-->
</script>


Text Hyperlink:

<a href=javascript:eek:nclick=NewWindow('blah.asp?JobNumber=" &
RS("JobNumber") & "',450,300)>Blah Blah</a> </td></tr>"


What do I need to add to break out of this window. Even submitting a
simple form later in my code pages via POST method stays in this small
window.

Appreciate your help

David.
 
M

McKirahan

David said:
Hi,

I have a page which lists data via asp & database.
Against each record is a text link. This link opens a window, sized by
a Javascript function in the link code.

Problem: All further links from other pages/buttons etc, cause the
pages to be displayed in the same sized window.
How can I close the small window and open the next links in full sized
windows...this is really annoying.

The size function is only called once from the first page

<script LANGUAGE="JavaScript">
<!--//
function NewWindow(pagename, pwidth, pheight) {
if (!pwidth) {
pwidth = 600
}
if (!pheight) {
pheight = 480
}
msgWindow=window.open(pagename,"quality","toolbar=no,width=" + pwidth
+ ",height=" + pheight +
",directories=no,status=no,scrollbars=no,resizable=no,menubar=no,
align = center");
}
//-->
</script>


Text Hyperlink:

<a href=javascript:eek:nclick=NewWindow('blah.asp?JobNumber=" &
RS("JobNumber") & "',450,300)>Blah Blah</a> </td></tr>"


What do I need to add to break out of this window. Even submitting a
simple form later in my code pages via POST method stays in this small
window.

Appreciate your help

David.

Try hitting Ctrl+N to open a new window then resize it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top