Re: FN-FORUM: PHP, Popups and parameter passing...
date posted 12th January 2004 15:55
> I'm looking for simple pop-up script (javascript?) that lets me pop a new
> window and pass some variables to the url.
JS :
function openWin(myURL, w, h) {
// Check for Mac
if (navigator.userAgent.indexOf("Mac") != -1){
// Reduce window measurements accordingly
w = w-18
h = h-20
}
var windowprops =
",location=no,scrollbars=yes,menubars=no,status=yes,toolbars=no,resizable=ye
s" + ",width=" + w + ",height=" + h;
authorWin=window.open(myURL,"newWin",windowprops);
}
Call example: