Javascript passing value to open window
Posted
by user244394
on Stack Overflow
See other posts from Stack Overflow
or by user244394
Published on 2010-06-08T16:54:38Z
Indexed on
2010/06/08
17:02 UTC
Read the original article
Hit count: 177
JavaScript
Hi!
How do i go about passing the value of width ,height,resize received as parameter to window.open using javascript?
Thanks
Example
function poponload(mywidth,myheight,resizeVal)
{
testwindow = window.open ("http://www.yahoo.com", "mywindow","location=1,status=1,scrollbars=1,width=+mywidth+,height=myheight,resizeVal");
testwindow.moveTo(0,0);
}
<body onload="javascript: poponload(200, 500,yes)">
© Stack Overflow or respective owner