This article describes the method of controlling the position and size of a new page window when JS is used to control the position and size of a pop-up page. Share it for your reference. The details are as follows:
I believe many friends want to make a pop-up to pop announcements or important information, but the position and size of the pop-up box should not be too large. So today we use JS to control the position and size of the pop-up window, and the size of the pop-up window should be as large as you want.
Copy the code as follows: <html>
<head>
<title>Specify popup position (IE)</title>
<script language="javascript">
<!--
function winpop(){
window.open("//www.VeVB.COM","","top=100,left=100,width=300,height=200");
}
//-->
</script>
</head>
<body onLoad="winpop()">
Specify the pop-up window location
</body>
</html>
I hope this article will be helpful to everyone's JavaScript programming.