Focus 焦点定位
<html>
<head>
<title>焦點定位</title>
<script LANGUAGE="Javascript">
var newWindow = null
function makeNewWindow(){
??? if (!newWindow || newWindow.closed)
??? {
??????? newWindow = window.open("","","width=150,height=150");
??????? var newContent = "<html><head><title>新建窗口</title></head>";
??????? newContent += "<body bgColor='blue'><H1>一個新的窗體</H1>";
??????? newContent += "<form><INPUT TYPE='button' VALUE='切換一個新的窗體' onClick='self.opener.focus()'><BR><BR>";
??????? newContent += "<form><INPUT TYPE='button' VALUE='返回上一窗體' onClick='self.blur()'>";
??????? newContent += "</form></body></html>";
??????? newWindow.document.write(newContent);
??????? newWindow.document.close();
??? }
??? else
??? {
??????? newWindow.focus();
??? }
}
</script>
</head>
<body>
<form>
<INPUT TYPE="button" NAME="newOne" VALUE="打開新窗體" onClick="makeNewWindow()">
</form>
</body>
</html>
總結
以上是生活随笔為你收集整理的Focus 焦点定位的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: with
- 下一篇: DISTINCT 去掉重复记录