echo --> 复制代码 代码如下: <html> <head> <script type="text/javascript"> function neww(){ var w=document.getElementById("w").value; alert(w); var h=document.getElementById("h").value; var hh=document.getElementById("hh").value; var v=document.getElementById("v").value; var style="directories=no,location=no,menubar=no,width="+w+"height"+h; var myFunc=window.open("http://www.baidu.com","nwindow",style); myFunc.moveTo(hh,v);