Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open problem

Status
Not open for further replies.

tlmm

Programmer
Mar 25, 2004
45
CA
I am having s problem using window.open. I am using the code below to open a new window. It works correctly in IE, but when I tried it in Netscape 7, it opens the new page, but does not display the scrollbars, so the user cannot view the entire page. Is there something specific I have to do to get this to work in Netscape?

Thanks.

JavaScript Function:

function OpenPage(strName)
{

switch(strName)
{

case 'sbwrelease':
var strWindow=window.open("other/ReleaseSept22-2004.htm","wndNewsLinksPage","width=450, height=450, toolbar=yes, menubar=yes, status=yes location=yes, directories=yes resizable=yes scrollbars=yes");
break
}

strWindow.focus();
return false;
}
 
If that's an exact cut-and-paste, then it appears to lose your comma-delimeters for your last three window attributes. Perhaps IE is forgiving of this and Netscape is not? Put commas between the directories, resizable, and scrollbars attribute/values (and status and location attribute/values while you're at it) and see what happens.

'hope that helps.

--Dave
 
I guess I missed that completely! Added the commas and it works perfectly.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top