小璐小璐哎
2018-11-01 09:00
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function winopen{
alert("欢迎来到慕课网");
window.open('http://www.imoc.com','_blank','width=600,height=400,toolbar=no,menubar=no,scrollbars=no,status=no');
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onclick="winopen()" />
</form>
</body>
</html>
function winopen 后面加()
JavaScript进阶篇
468061 学习 · 21891 问题
相似问题