javascript window和document
摘要:1.window是指浏览器窗口 document是指当前的页面文档输入输出流.2.例如:window.location是当前的网址 然而 document.location是当前网页在文件中存在的位置3.window.top.document 是指当前窗口最上层框架的引用.4.常用的方法:1)window.location.href='http://www.baidu.com';页面跳转2)document.getElementById ByName ByTagName 得到DOM对象3)document.write(); 输出页面信息等4)window.history.go(
阅读全文
posted @ 2011-09-07 20:27
浙公网安备 33010602011771号