第一次提问,代码复制不过来,如图
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
function Wopen(){
var open;
open = prompt(请输入网址:,http://);
if (open==null){
document.write("请输入网址!");
}
else {
window.open(open,'width=600,height=400,top=100,left=0');
}}
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开你想要的网址!" />
</body>
</html>
应该是把window.open里面的’lu‘的引号去掉试试