html 弹出固定大小的页面,html弹出固定大小的窗口(HTML pops up a fixed size window).doc...

html弹出固定大小的窗口(HTML pops up a fixed size window)

html弹出固定大小的窗口(HTML pops up a fixed size window)

Would you like a window with a fixed size after clicking?

[1, the most basic pop-up window code]

Window.open ('page.html')

-- >

Since this is a section of Javascripts code, they should be placed between . acts on some version of the low browser, the browser will not be in the old label code as text display. Get into this good habit. Window.open ('page.html') is used to control the pop-up window page.html, if page.html is not with the main window on the same path, should be written in front of the path, the absolute path (http://) and relative path (/) can. You can use both single and double quotes, but don't mix them. Any position of this piece of code can be added to HTML, can be between

and , can also be more before the earlier implementation, especially the page code, and want to make the page pops up as far as possible to put forward earlier.

[2, after setting up pop-up window]

Let's talk about the settings of the pop-up window. Just add a little more to the code above. Let's customize the appearance, size, and position of the pop-up window to fit the page.

Window.open ('page.html','newwindow','height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=n, O, status=no') / / this sentence should be written out in a row

-- >

Parameter interpretation:

Window.open pop-up new window command;

'page.html'pop-up window file name;

'newwindow'pop-up window name (not file name), non required, available empty instead;

Height=100 window height;

Width=400 window width;

Top=0 window is the pixel value above the screen;

Left=0 window is the pixel value from the left of the screen;

Does toolbar=no display toolbars, and yes is display?;

Menubar, scro

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值