`

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
)"

分享到:
评论

相关推荐

    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源内容的...

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

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

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

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

    ios-gitDemo.zip

    本地图实现 : (UIImage *)animatedImageWithAnimatedGIFData:(NSData *)theData;... (UIImage *)animatedImageWithAnimatedGIFURL:(NSURL *)theURL; github: https://github.com/His-writing/gitDemo

    strip-utm:从 URL 查询字符串中删除 utm 跟踪代码

    脱衣 从 URL 查询字符串中删除 utm 跟踪代码。 安装 $ npm install strip-utm --save 用法 var stripUtm = require ( './... log ( stripUtm ( theUrl ) ) ; 输出: http://example.com/?a=first&m=middle&t=upp

    music-in-town-front:前端

    fetch ( TheURL + band + TheKey ) . then ( x => x . json ( ) ) . then ( ( band ) => { this . setState ( { band : band } ) } ) fetch ( TheURL + band + '/events' + TheKey ) . then ( x => x . json ( )...

    Objective C从远程url下载图片方法汇总

    - (UIImage *) getImageFromURL: (NSString *)theURL { UIImage *theImage = NULL; NSString *imageFileName = [BT_strings getFileNameFromURL:theURL]; NSData *imageData = [[NSData alloc] ...

    自己做采集程序

    现在网上的采集程序很多,但是有时候你发现一个好的网站,想自己做个采集工具采集一些信息,就需要自己去写程序了,其实这样的采集程序并不难写,主要是去分析...Public Property LET URL(theurl)sUrl=theurlend proper

    OC 与JS 交互 之项目实战

    * @param theURL * * @return 是否成功处理 */ - (BOOL)handleDictionAry:(NSDictionary *)dictionary callback:(HybridCallbackBlock)callbackBlock; /** * 可以接受的actionNames列表 * * 每个...

Global site tag (gtag.js) - Google Analytics