<bdo id='c1JR6'></bdo><ul id='c1JR6'></ul>

      <legend id='c1JR6'><style id='c1JR6'><dir id='c1JR6'><q id='c1JR6'></q></dir></style></legend>

      <tfoot id='c1JR6'></tfoot>
    1. <small id='c1JR6'></small><noframes id='c1JR6'>

      <i id='c1JR6'><tr id='c1JR6'><dt id='c1JR6'><q id='c1JR6'><span id='c1JR6'><b id='c1JR6'><form id='c1JR6'><ins id='c1JR6'></ins><ul id='c1JR6'></ul><sub id='c1JR6'></sub></form><legend id='c1JR6'></legend><bdo id='c1JR6'><pre id='c1JR6'><center id='c1JR6'></center></pre></bdo></b><th id='c1JR6'></th></span></q></dt></tr></i><div id='c1JR6'><tfoot id='c1JR6'></tfoot><dl id='c1JR6'><fieldset id='c1JR6'></fieldset></dl></div>

      javascript (window.open) 在所有浏览器中打开最大化,但在 chrome 中不打开

      javascript (window.open) opens maximized in all browsers but not in chrome(javascript (window.open) 在所有浏览器中打开最大化,但在 chrome 中不打开)

      <tfoot id='Ru9N0'></tfoot>
        <bdo id='Ru9N0'></bdo><ul id='Ru9N0'></ul>
            <tbody id='Ru9N0'></tbody>
          <i id='Ru9N0'><tr id='Ru9N0'><dt id='Ru9N0'><q id='Ru9N0'><span id='Ru9N0'><b id='Ru9N0'><form id='Ru9N0'><ins id='Ru9N0'></ins><ul id='Ru9N0'></ul><sub id='Ru9N0'></sub></form><legend id='Ru9N0'></legend><bdo id='Ru9N0'><pre id='Ru9N0'><center id='Ru9N0'></center></pre></bdo></b><th id='Ru9N0'></th></span></q></dt></tr></i><div id='Ru9N0'><tfoot id='Ru9N0'></tfoot><dl id='Ru9N0'><fieldset id='Ru9N0'></fieldset></dl></div>

          <small id='Ru9N0'></small><noframes id='Ru9N0'>

        1. <legend id='Ru9N0'><style id='Ru9N0'><dir id='Ru9N0'><q id='Ru9N0'></q></dir></style></legend>

              • 本文介绍了javascript (window.open) 在所有浏览器中打开最大化,但在 chrome 中不打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用以下代码打开一个最大化的弹出窗口,我不想全屏打开它(F11),我需要它只是最大化,就像按下最小化和关闭之间的按钮一样.

                I am using the following code to open a maximized pop up window, i don't want to open it full screen (F11), I need it just maximized, exactly like pressing the button between minimize and close.

                <a  onclick="javascript:w= window.open('https://www.facebook.com/mywifemylove','_blank','channelmode =1,scrollbars=1,status=0,titlebar=0,toolbar=0,resizable=1');" href="javascript:void(0);" target="_blank">Maximized on Chrome</a>
                

                它适用于所有浏览器,但不适用于 Chrome,这是一个 jsfiddle 用于测试

                It's working fine for all browsers but not Chrome, Here is a jsfiddle for testing

                推荐答案

                除IE外,浏览器不支持JS全屏.这是故意的:

                With the exception of IE, browsers do not support going fullscreen with JS. This is intentional:

                https://developer.mozilla.org/zh-CN/docs/Web/API/window.open#FAQ

                所有浏览器厂商都在尝试使新二次元的开放用户注意到并引起用户注意的窗口以避免混淆,以避免迷惑用户."

                "All browser manufacturers try to make the opening of new secondary windows noticed by users and noticeable by users to avoid confusion, to avoid disorienting users."

                您可以手动将窗口的大小设置为屏幕大小,但您可能需要处理框架边框厚度等问题.

                You can manually set the size of the window to the screen size but you may have to deal with things like frame border thickness.

                相关的 SO 问题:如何使用Javascript打开最大化窗口?

                在最新版本的 IE、FF 或 Chrome 上最大尺寸窗口的工作代码:

                Working code for max size window on latest versions of IE, FF or Chrome:

                window.open('http://www.stackoverflow.com','_blank','height='+screen.height+', width='+screen.width);
                

                这篇关于javascript (window.open) 在所有浏览器中打开最大化,但在 chrome 中不打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                append() 方法在被选元素的结尾(仍然在内部)插入指定内容。 语法: $(selector).append( content ) var creatPrintList = function(data){ var innerHtml = ""; for(var i =0;i data.length;i++){ innerHtml +="li class='contentLi'"; innerHtml +="a href
                问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
              • <i id='V0Vgm'><tr id='V0Vgm'><dt id='V0Vgm'><q id='V0Vgm'><span id='V0Vgm'><b id='V0Vgm'><form id='V0Vgm'><ins id='V0Vgm'></ins><ul id='V0Vgm'></ul><sub id='V0Vgm'></sub></form><legend id='V0Vgm'></legend><bdo id='V0Vgm'><pre id='V0Vgm'><center id='V0Vgm'></center></pre></bdo></b><th id='V0Vgm'></th></span></q></dt></tr></i><div id='V0Vgm'><tfoot id='V0Vgm'></tfoot><dl id='V0Vgm'><fieldset id='V0Vgm'></fieldset></dl></div>

                    <legend id='V0Vgm'><style id='V0Vgm'><dir id='V0Vgm'><q id='V0Vgm'></q></dir></style></legend>

                      <bdo id='V0Vgm'></bdo><ul id='V0Vgm'></ul>
                    • <tfoot id='V0Vgm'></tfoot>

                      <small id='V0Vgm'></small><noframes id='V0Vgm'>

                          <tbody id='V0Vgm'></tbody>