Click to See Complete Forum and Search --> : Adding in javascript


druss
05-02-2003, 11:48 PM
I dont know why this dont work???

Can someone tell me why and where im going wrong...
Thanks

here is the code:

-------------------------------------------------------

function popUp(URL,width,height) {
day = new Date();
id = day.getTime();
height = height + 89;
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = 0,top = 0');");
}

--------------------------------------------------------


Thanks Again
Goran

khalidali63
05-03-2003, 06:54 AM
Here try it..I have tested teh code on NS6+ and IE6+


function popUp(URL,width,height) {
day = new Date();
id = day.getTime();
height = height + 89;
var winId = "page" + id;
var winProps = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' +
width + ',height=' + height + ',left = 0,top = 0';
winId = window.open(URL,winId, winProps);
}


if you look at the code you will see that menubar property is breaking in the forum,make sure that is in the straight line.