control-1.htm

来自「四人帮《设计模式》一书英文版本」· HTM 代码 · 共 27 行

HTM
27
字号
<HTML>

<SCRIPT LANGUAGE="JavaScript">

var anchorTarget = null

function gotoAnchor()
{
	// if ( anchorTarget == null ) return
	top.MAIN.TEXT.location.hash = anchorTarget
	// status = top.MAIN.TEXT.location.hash
	alert(top.MAIN.TEXT.location.hash)
	status = top.MAIN.TEXT.title
	anchorTarget = null
}

function load(frameset,anchor)
{
	top.MAIN.location = frameset
	top.anchorTarget = anchor
}

</SCRIPT>

</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?