View Full Version : No Scroll Bars in Navigator second window
RICHARD CORSER
09-03-2001, 06:49 AM
secondWindow = open("nsdhomepage.htm", "secondWindow", "toolbar=yes, resizable=yes, left=0, top =0, width=790, height=400, fullscreen=no, , status=yes, menubar=yes, scrollbars=yes, directories=yes");
The above code works fine in Internet Explorer, BUt does not show Scroll bars in a new window on Netscape Navigator.
What is required in Netscape to open a second window with Scroll Bars active.
Richard
scoutt
09-03-2001, 02:26 PM
change scrollbars=yes to scrollbars=1
cloud9
09-03-2001, 02:27 PM
Originally posted by RICHARD CORSER
secondWindow = open("nsdhomepage.htm", "secondWindow", "toolbar=yes, resizable=yes, left=0, top =0, width=790, height=400, fullscreen=no, , status=yes, menubar=yes, scrollbars=yes, directories=yes");
The above code works fine in Internet Explorer, BUt does not show Scroll bars in a new window on Netscape Navigator.
What is required in Netscape to open a second window with Scroll Bars active.
Richard
perhaps the scrollbars will only appear if they are needed?????
RICHARD CORSER
09-04-2001, 04:29 AM
No the command scrollbars=1 didn't work
Anymore more suggestions, and yes the page requires a scrollbar. It also ignores the resize and menubar option?
Richard
whkoh
09-04-2001, 06:19 AM
The scrollbar option is 1 by default. The resizeable option is 0, unless turned on and menubar is 1 in IE.
Dr. Web
09-04-2001, 12:32 PM
lets have a look at the entire page.......
RICHARD CORSER
09-05-2001, 05:03 AM
Thanks for the tips, I have written an IF statement to take care of it, so only opening a new window in Explorer.
Richard
<script language="JavaScript" type="text/javascript">
<!--
if(navigator.appName=="Netscape")
{
window.parent.location.href="nsdhomepage.htm" ;
}
else {
secondWindow = open("nsdhomepage.htm", "secondWindow", "toolbar=1, resizable=YES, left=0, top =0, width=790, height=450, fullscreen=no, , status=yes, menubar=1, scrollbars=1, directories=1");
}
// -->
</script>
BloodGhst
09-05-2001, 11:48 AM
I have no idea why that code doesn't work for you. I tried it and it worked fine. Could it be the version of Netscrap you're using.
(Kudos to COBOLdino for Netscrap)
Dr. Web
09-05-2001, 12:41 PM
strange.
this code produces scrollbars in both IE and Netscape...
<html>
<head>
<title>Untitled</title>
</head>
<body>
<A HREF="#" ONCLICK="open('http://www.yahoo.com','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resiz able=0,width=300,height=300')">Open a Window</A>
</body>
</html>
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.