⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 21-2.txt

📁 Javascript语言开发经典教程开发
💻 TXT
字号:
// This function requests the UniversalBrowserRead privilege to enable// it to read the array elements of the History object.function openHistoryWindow() {    // Open a new window.    var w = window.open("", "historyWindow",                         "width=500,height=300,menubar,resizable");    var d = w.document;    // Request a privilege.    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");    // Output the browsing history of this window as links in the new window.    for(var i = 0; i < history.length; i++) {        d.write('<A TARGET="new" HREF="' + history[i] + '">');        d.write(history[i]);        d.writeln('</A>');    }    d.close();    // Return the new window.    return w;    // The privilege is automatically disabled when this function returns.}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -