Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- handy, generic javascript coding


austtr - 12:48 am on May 2, 2001 (gmt 0)


Hello Tedster...

Your following javascript was exactly what I was after... my earlier efforts were showing an error in IE4 but OK in IE5.

If I want the new window positioned 50 pixels in from left edge and 50 pixels down from top, what are the syntax changes?

Thanks
----------------------------------------------
In the HEAD or External JS file:

function cPop(url, wide, high)
{window.open(url,"popup",'width=' + wide + ',height=' + high);
}

In the BODY:

<a href="javascript:cPop('page.html',300,500)">Click for popup window</a>


Thread source:: http://www.webmasterworld.com/javascript/567.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com