qq_314_1
2017-05-21 12:35
在哪实现我输入代码
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
var nw = function openwindow(){
var flag=confirm("打开新窗口吗");
if(flag){
window.open(" http://www.imooc.com/","width = 400","heigth = 500","menubar = no","toolbar = no");
}
}
// 新窗口打开时弹出确认框,是否打开
// 通过输入对话框,确定打开的网址,默认为 http://www.imooc.com/
//打开的窗口要求,宽400像素,高500像素,无菜单栏、无工具栏。
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>
点提交后代码旁的空白会出现编写的代码,可以先写一部分点提交看是否出错
JavaScript入门篇
742002 学习 · 9869 问题
相似问题