js中document对象的location属性负责设置HTML文档的链接URL,例如:
<html>
<body οnlοad="Redirect();">
<script language="javascript">
function Redirect()
{
document.location = "http://www.126.com";
}
</script>
</body>
</html>
用来在页面加载的时候重定向文档链接到126邮箱首页。
js中document对象的location属性负责设置HTML文档的链接URL,例如:
<html>
<body οnlοad="Redirect();">
<script language="javascript">
function Redirect()
{
document.location = "http://www.126.com";
}
</script>
</body>
</html>
用来在页面加载的时候重定向文档链接到126邮箱首页。