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="JavaS cript">
<!--//
function NewWindow(pagen ame, pwidth, pheight) {
if (!pwidth) {
pwidth = 600
}
if (!pheight) {
pheight = 480
}
msgWindow=windo w.open(pagename ,"quality","too lbar=no,width=" + pwidth
+ ",height=" + pheight +
",directories=n o,status=no,scr ollbars=no,resi zable=no,menuba r=no,
align = center");
}
//-->
</script>
Text Hyperlink:
<a href=javascript :onclick=NewWin dow('blah.asp?J obNumber=" &
RS("JobNumber" ) & "',450,300)>Bla h 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.
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="JavaS cript">
<!--//
function NewWindow(pagen ame, pwidth, pheight) {
if (!pwidth) {
pwidth = 600
}
if (!pheight) {
pheight = 480
}
msgWindow=windo w.open(pagename ,"quality","too lbar=no,width=" + pwidth
+ ",height=" + pheight +
",directories=n o,status=no,scr ollbars=no,resi zable=no,menuba r=no,
align = center");
}
//-->
</script>
Text Hyperlink:
<a href=javascript :onclick=NewWin dow('blah.asp?J obNumber=" &
RS("JobNumber" ) & "',450,300)>Bla h 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.
Comment