<body onload="myhomepage();">
<script language="javascript">
function myhomepage(){
this.homepage.style.behavior=@#url(#default#homepage)@#;this.homepage.sethomepage(@#http://www.webjx.com/@#);
}
</script>
<p align="center"><a href="html.htm" name="homepage" onclick="myhomepage();">设为主页</a></body>
进入页面时弹出问候语:
<script language="javascript">
alert("网页教学网欢迎您!")
</script>