PDA

View Full Version : JavaScript IE problem


caskater
03-28-2003, 09:31 AM
Ok guys, i'm getting frustrated here. I've written a piece of JavaScript that seems to love working in Netscape, but when I try it in IE, I get an error. The code is the following

function openImage(url) {
var features='resizeable=no,toolbar=no,scrollable=no,status=no,location=no,width=300,height=515';
window.open(url,'Page Title',features);
}

Now I usually get there error on the line with "window.open()" and it says there is an invalid argument. Can someone please explain this one 'cause I sure as hell am not getting it. If you want a real working example of the problem, you can try the following link.

http://www.delucaentertainment.net/display.php?ID=23

Thanks for the help!!

glenngv
03-28-2003, 09:34 AM
you can't have spaces (and other special characters except underscore) in the window target which is the 2nd parameter for window.open()

caskater
03-28-2003, 09:36 AM
well that's dumb, hehe...