<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>window对象</title> </head> <body> <script type="text/javascript"> window.status = "我在底部呢,你找了吗?"; //window.open("20.html"); alert(window.location.href); window.location.href="http://sh.itcast.cn"; </script> <a href="index.html">去其他页面</a> </body> </html>