javascript - 滚动条不出现在新窗口中

标签 javascript firefox

我正在尝试打开一个新窗口,但出于某种原因,滚动条不会出现在 Firefox 或 IE 中,但在 Chrome 和 Opera 中可以正常工作。

这是按钮上的 javascript 代码(来自 PHP 脚本), 和下面,如果它更具可读性,输出的 HTML:

window.open('".BASE_URL."utils/viewProfile.php?key=".$key."',null,'width=1280,height=1024,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=1,resizable=1')"

<input class="input-button btn_generic_nav6up" type="button" onclick="window.open('https://domain.com/utils/viewProfile.php?key=8UjKKydCyTx1V7E2A0xklA%3D%3D',null,'width=1280,height=1024,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=1,resizable=1')" value="view profile" />

最佳答案

在我的脑海中,我认为它是 scrollbars(复数)而不是 scrollbar

我还认为它是 scrollbars=yes 而不是 scrollbars=1,但两者都可能起作用。

关于javascript - 滚动条不出现在新窗口中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1487583/

相关文章:

javascript - 如何重构这个要排序的对象表?

html - Firefox 不显示完整的 HTML 页面 - CSS

firefox - 黑板标题 : Ok in Chrome and IE8, 在 Firefox 中不稳定

javascript - Firefox bug - 使用 jQuery 克隆视频时不会静音?

javascript - 快速替换图像 src 时 Firefox 中的内存使用情况

javascript - 使用 howler.js 和 meteor 框架播放/暂停

javascript - 删除字符串末尾的特定字符(html 元素)

javascript Ace 编辑器空格变成制表符?

javascript - Chrome RGBA 问题

javascript - jQuery 在 chrome 和 IE 上获取按键事件