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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in IE8 but nowhere else

Status
Not open for further replies.

PaulHunt

Programmer
Nov 4, 2005
7
0
0
US
This has been running fine in IE, FF, and Safari for years. Now it errors out in IE8. I have no idea why. The page validates fine.
function _windowNew(url,name,horSize,vertSize,statusBar,menuBar,toolBar,reSize,scrollBars) {
if (!statusBar) {statusBar="no";}
if (!menuBar) {menuBar="no";}
if (!toolBar) {toolBar="no";}
if (!reSize) {reSize="no";}
if (!scrollBars) {scrollBars="no";}
var parms = 'width=' + horSize + ',height=' + vertSize + ',status=' + statusBar + ',menubar=' + menuBar + ',resizable=' + reSize + ',scrollbars=' + scrollBars + ',toolbar=' + toolBar;
window.open(url,name,parms);
}

Link: Click on: All Vermont teens are at risk

Thanks,
Paul
 
it appears that IE8 does not like spaces in the window name.

Code:
window.open('about:blank','foo bar',800,600,'no','no','no','yes','yes')

fails in IE8 but

Code:
window.open('about:blank','foobar',800,600,'no','no','no','yes','yes')

works
 
The error was "Invalid argument".

Justin is right. It works fine without spaces in the window name.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top