电话
13363039260
history.back() 方法加载历史列表中的前一个 URL。这与在浏览器中点击后退按钮是相同的:在页面上创建后退按钮:<!DOCTYPE html><html><head><meta charset="utf-8"><head><......
location.assign() 方法加载新的文档。加载一个新的文档:<!DOCTYPE html><html><head><meta charset="utf-8"><title>菜鸟教程(runoob.com)</title&g......
location.pathname 属性返回 URL 的路径名。返回当前 URL 的路径名:<script>document.write(location.pathname);</script>以上代码输出为:/js/js-window-location.html...
location.href 属性返回当前页面的 URL。返回(当前页面的)整个 URL:<script>document.write(location.href);</script>以上代码输出为:https://www.runoob.com/js/js-window-location.html...
screen.availHeight 属性返回访问者屏幕的高度,以像素计,减去界面特性,比如窗口任务栏。返回您的屏幕的可用高度:<script>document.write("可用高度: " + screen.availHeight);</script>以上代码将输出:可用高......
screen.availWidth 属性返回访问者屏幕的宽度,以像素计,减去界面特性,比如窗口任务栏。返回您的屏幕的可用宽度:<script>document.write("可用宽度: " + screen.availWidth);</script>以上代码输出为:可用宽度:......
浏览器对象模型(Browser Object Model (BOM))尚无正式标准。由于现代浏览器已经(几乎)实现了 JavaScript 交互性方面的相同方法和属性,因此常被认为是 BOM 的方法和属性。...