HI,
I have a page with a button (form) that when clicked it opens a pop up generated by Perl.
My problem is that after the pop up is loaded, the "father" page scroll bar jumps to the top.
What should I do in order to keep the energetic page in place?
This is the code I use in the form:
<form>
<font color="#000000">
<input type="submit" STYLE="font-family: Arial; font-size: 10pt; color: #000000; background: #fffff0;" value="More..." name="more" onClick=openWin('##NAME##')>
</font>
</form>
This is the code I use to define openWin():
<script language="JavaScript">
function openWin(name) {
day = new Date();
id = day.getTime();
myWin=window.open('../cgi-bin/machines_details.pl?'+name,id,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=550,left = 200,top = 50');
}
</script>
Thanks
I have a page with a button (form) that when clicked it opens a pop up generated by Perl.
My problem is that after the pop up is loaded, the "father" page scroll bar jumps to the top.
What should I do in order to keep the energetic page in place?
This is the code I use in the form:
<form>
<font color="#000000">
<input type="submit" STYLE="font-family: Arial; font-size: 10pt; color: #000000; background: #fffff0;" value="More..." name="more" onClick=openWin('##NAME##')>
</font>
</form>
This is the code I use to define openWin():
<script language="JavaScript">
function openWin(name) {
day = new Date();
id = day.getTime();
myWin=window.open('../cgi-bin/machines_details.pl?'+name,id,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=550,left = 200,top = 50');
}
</script>
Thanks