examplewindowpopup.html
来自「javascript tutorial」· HTML 代码 · 共 19 行
HTML
19 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example: Opening a window when the page loads</title>
<style type="text/css">
</style>
<script type="text/javascript">
function popup(){
var windowprops="width=200,height=200,top=100,left=100";
var myWin = window.open("grid.html","mynewwin",windowprops);
}
window.onload=popup;
</script>
</head>
<body>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?