`

window.open(theURL,winName,features); 详解

    博客分类:
  • jsp
阅读更多

window.open(theURL,winName,features);
//参数分成三部分,依次是:欲打开窗口的URL,新开窗口名称,详细功能参数

onLoad=Window.open('BLOGCHINA.COM','Detail','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,
resizable=yes,width=100,height=100')"


onLoad= //加载页面时激活
Window.open( //引用Window对象,Open方法
'BLOGCHINA.COM', //将要弹出的窗口的URL地址
'Detail', //窗口名称
'toolbar=yes, //是否显示浏览器的工具条(前进后退等等按钮),Yes=显示,No=不显示
location=yes, //是否显示地址栏,Yes=显示,No=不显示
status=yes, //是否显示状态栏,Yes=显示,No=不显示
menubar=yes, //是否显示菜单栏,Yes=显示,No=不显示
scrollbars=yes, //是否显示滚动条,Yes=显示,No=不显示
resizable=yes, //是否允许拖拽改变大小,Yes=显示,No=不显示
width=100, //弹出窗口的宽度,单位是象素,px
height=100' //弹出窗口的高度,单位是象素,px
)"

分享到:
评论

相关推荐

    两个有效的弹窗代码,用于网页设计

    window.open(theURL, winName, features); } function open_url() { var gt = unescape('%3e'); var popup = null; var over = "LaunchPop-upNavigator"; popup = window.open('', 'popupnav', 'height=300,...

    网页中的下拉菜单.pdf

    window.open(theURL,winName,features); } ``` 这个函数可以用于打开新的浏览器窗口,并传递参数来控制窗口的显示方式。 使用Dreamweaver等工具也可以方便地设计和实现下拉菜单。Dreamweaver提供了一个timeline、...

    Dreamweaver轻松打造弹出窗口

    window.open(theURL, winName, features); } //--> ``` 其中,`MM_openBrWindow()` 方法被定义并用于打开新的窗口。 ```html ('yourpage.htm', 'winname', 'toolbar=yes,location=yes,status=yes,menubar=...

    js页面跳转常用的几种方式

    ### JavaScript 页面跳转常用方法详解 在Web开发中,页面跳转是一项基本且重要的功能,它可以帮助用户在不同的页面间导航。JavaScript作为一种广泛使用的客户端脚本语言,提供了多种实现页面跳转的方法。本文将详细...

    Dreamwear设计常用代码 17-21.docx

    function MM_openBrWindow(theURL, winName, features) {window.open(theURL, winName, features);} ('theURL', 'winName', 'width=550, height=380, border=0')">图片或文字 ``` `MM_openBrWindow`函数接收三个...

    flash_as3.0_常用代码

    window.open(theURL,winName,features); } ``` 二、全屏显示 使用 `fscommand` 函数可以使 Flash 一打开就是全屏,代码如下: ```actionscript fscommand("fullscreen", true); ``` 三、禁止右键菜单 使用 `...

    40个网页设计小技巧.txt

    function MM_openBrWindow(theURL, winName, features) { window.open(theURL, winName, features); } ('image.jpg', 'popup', 'width=550,height=380,scrollbars=yes');">查看图片 ``` ### 17. 设置水平线样式 ...

    Flash常用代码集锦.doc

    window.open(theURL,winName,features); } ``` 此代码定义了一个名为`MM_openBrWindow`的JavaScript函数,用于打开带有指定特性的新窗口。 #### 二、实现Flash全屏播放及取消右键菜单功能 - **实现全屏播放**...

    JavaScript中如何取消ajax请求

    xmlHttp.open(POST,theUrl,true); xmlHttp.onreadystatechange=function(){ ...//得到响应之后的操作 } xmlHttp.send(); //设置8秒钟后检查xmlHttp对象所发送的数据是否得到响应. setTimeout(CheckRequest(),8000);...

    abcpdf.net

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><%Set theDoc = Server.CreateObject("ABCpdf7.Doc")theDoc.Rect.Inset 72, 144 theDoc.Page = theDoc.AddPage()theURL = "http://www.isxml.com/" '要生成的PDF源内容的...

    个人站长制做网页常用的php代码

    function openWindow(theURL, winName, features) { // v2.0 window.showModalDialog(theURL, test(), 'dialogHeight:270px;dialogWidth:265px;scroll:no;status:no'); } function test() { location.href = ...

    JavaScript用JSONP跨域请求数据实例详解

    前言 最近因为工作需要,需要... function httpGetAsync(theUrl, callback) { xmlHttp = null; if (window.XMLHttpRequest) {// code for IE7, Firefox, Opera, etc. xmlHttp = new XMLHttpRequest(); } else i

    常用邮箱快速登录代码

    - `function MM_openBrWindow(theURL, winName, features) {...}`:此函数用于打开新的浏览器窗口,并可以指定窗口的属性。 #### 1.2 DOM操作 - `document.loginmail.pass.value=""`:通过`document`对象访问表单...

    C#.net做的web浏览器

    ### C#.NET Web浏览器开发详解 #### 一、引言 在现代软件开发领域,使用C#.NET构建自定义浏览器不仅是一种技术挑战,也是一种学习Web技术及其底层原理的有效方式。本文将详细介绍如何使用C#.NET创建一个简单的Web...

    js与jQuery终止正在发送的ajax请求的方法.docx

    xhr.open('POST', 'theUrl', true); xhr.onreadystatechange = function() { if (xhr.readyState === 4) { // 请求完成后的处理 } }; xhr.send(); // 当需要取消请求时 xhr.abort(); ``` 在上面的例子中,`xhr....

    VC++天气预报的源代码

    BOOL bIsOk = dataStore.Open("Weather//" + filename, CFile::modeCreate | CFile::modeWrite | CFile::shareDenyWrite | CFile::typeText); if (!bIsOk) return; // 如果打开失败,则退出 while (file->...

    DW的新用户注册页面基础的代码.doc

    第二个函数是 `MM_openBrWindow(theURL,winName,features)`,该函数用于打开一个新的浏览器窗口,并加载指定的 URL。 表单处理 在给定的代码中,我们可以看到一个简单的表单处理。该表单名为 "form1",表单的方法是 ...

    新页面打开实际尺寸的图片

    function checkImg(theURL,winName){ if (typeof(imgObj) == “object”){ // 是否已取得了图像的高度和宽度 if ((imgObj.width != 0) && (imgObj.height != 0)) // 根据取得的图像高度和宽度设置弹出...

    python访问抓取网页常用命令总结

    req = urllib.request.Request(theurl) response = urllib.request.urlopen(req) page = response.read() ``` 5. **响应对象的方法**: - `geturl()`:返回实际被访问的URL,因为有些服务器可能会执行重定向,...

Global site tag (gtag.js) - Google Analytics