开发者

Open up link in new window maximised

开发者 https://www.devze.com 2022-12-12 10:56 出处:网络
Does anyone know how to open up a new window but in maximised format (spec. in IE7 and IE6开发者_运维问答)? Javascript methods are OK in this instance too.Use

Does anyone know how to open up a new window but in maximised format (spec. in IE7 and IE6开发者_运维问答)? Javascript methods are OK in this instance too.


Use

window.open

and use the

fullscreen

option.

But before doing that read this also

Note on fullscreen

Example

var WindowObjectReference;

function openRequestedPopup()
{
  WindowObjectReference = window.open("http://www.domainname.ext/path/ImageFile.png",
                  "DescriptiveWindowName",
                  "resizable=yes,scrollbars=yes,status=yes,fullscreen=yes");
}
0

精彩评论

暂无评论...
验证码 换一张
取 消