SoFunction
Updated on 2025-03-01

javascript: Popup window location problem


<html>
<head>
<script type="text/javascript">
function neww(){
var w=('w').value;
alert(w);
var h=('h').value;
var hh=("hh").value;
var v=('v').value;
var style="directories=no,location=no,menubar=no,width="+w+"height"+h;
var myFunc=("","nwindow",style);
(hh,v);

}
</script>
</head>
<body>
The height of the new window: <input type="text" size="4" value="300" />
Width of the new window: <input type="text" size="4" value="300" />
Vertical coordinates of new window: <input type="text" size="4" value="300" />
Horizontal coordinates of the new window: <input type="text" size="4" value="300" />
<button onclick="new();">Open the heart pop-up window</button>
</body>
</html>