<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Browers Object Model</title>
<script type="text/javascript">
//<![CDATA[
window.onload = function(){
var yahoo = document.getElementById("yahoo");
yahoo.onclick = function(){
popUp(this.href);
return false;
}
function popUp(url){
window.open(url,"yahoo","width=200,height=200px");
}
}
//]]>
</script>
</head>
<body>
<a href="http://www.yahoo.com" id="yahoo">Yahoo</a>
</body>
</html>
Browers Object Model
最新推荐文章于 2024-09-09 19:27:54 发布