Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/425.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 覆盖窗口。在打开的窗口中打开属性_Javascript_Jquery - Fatal编程技术网

Javascript 覆盖窗口。在打开的窗口中打开属性

Javascript 覆盖窗口。在打开的窗口中打开属性,javascript,jquery,Javascript,Jquery,我有一个父页面,它有一个链接,可以打开一个带有out scroll的新弹出窗口。 在父windiow中使用的代码是: ebayShowPopupWindow(this.href, '', 472, 320, 'no', 'no', 'no', 'no', 'no'); 方法实现为: function showPopupWindow(url, name, width, height, toolbar, location, status, scrollbars, resizable, menu

我有一个父页面,它有一个链接,可以打开一个带有out scroll的新弹出窗口。 在父windiow中使用的代码是:

ebayShowPopupWindow(this.href, '', 472, 320, 'no', 'no', 'no', 'no', 'no');  
方法实现为:

function showPopupWindow(url, name, width, height, toolbar, location, status, scrollbars, resizable, menubar, left, top, customprops) {
    var props = "";
    if (width) props += ",width=" + width;
    if (height) props += ",height=" + height;
    if (toolbar) props += ",toolbar=" + toolbar;
    if (location) props += ",location=" + location;
    if (status) props += ",status=" + status;
    if (scrollbars) props += ",scrollbars=" + scrollbars;
    if (resizable) props += ",resizable=" + resizable;
    if (menubar) props += ",menubar=" + menubar;
    if (left) props += ",screenX=" + left + ",left=" + left;
    if (top) props += ",screenY=" + top + ",top=" + top;
    if (customprops) props += "," + customprops;
    if (props != "") props = props.substring(1);
    var w = window.open(url, name, props);
    if (!is.opera && w && !w.closed) w.focus();
    return w;
}
现在我的问题是:我们可以在子窗口的页面加载中覆盖窗口滚动属性吗

原因:我们有一个页面链接被不同的团队使用,他们限制了弹出窗口中的滚动,隐藏了页面的某些部分

我试着做一些这样的事情,但没有成功:

$(document).ready(function() {
    var b = $.browser;
    window.scrollbars = 'yes';
    window.scrollbars.visible= true;
});