📄 dthmllinktest.htm
字号:
<html>
<script language="JavaScript">
function switchLinks(text, url){
debugger;
objLink.setLink(document.all.linkitem.innerText, document.all.linkitem.href);
document.all.linkitem.innerText = text;
document.all.linkitem.href = url;
}
function clickedLinkObject(){
alert("Click Event for the component in the primary document");
}
</script>
<body>
<p>
Below is the primary document's link:<br>
<a id="linkitem" href="http://www.microsoft.com">Microsoft's Web Site</a>
</p>
<div style="behavior:url('dhtmllink.htc')" id="objLink" onclick="clickedLinkObject()"></div><br>
<input type=button value="Switch Links" onclick="switchLinks(objLink.text, objLink.URL)">
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -