Javascript not resizing browser window when called from notes client

Hi all,

I have added some javascript (see below), to a button on a notes form and when clicked it opens a form in a browser window.

The problem is that I’m also passing attributes in the javascript to make sure that the browser opens with no toolbar, menubar or statusbar showing and I’m also passing the size I want the browser window to open but the attributes are being ignored. When the browser window opens all toolbars, etc are being shown as normal.

Does anyone know why the attributes I’m passing are being ignored?

window.open(“http://WEBServer/AD2005/index.html”,null, “height=200,width=400,status=yes,toolbar=no,menubar=no,location=no”);

Thanks in advance,

Steven

Subject: Javascript not resizing browser window when called from notes client

That’s up to the browser, but as a rule the initial instance of a browser window will open with all of the chrome in place.

Subject: RE: Javascript not resizing browser window when called from notes client

My default browser is IE, it should work. As I have tested this button in the HTML Page. It work as expected, but not work in Notes Client.

Thanks

steven

Subject: RE: Javascript not resizing browser window when called from notes client

When you run it from an HTML page, your new window is not the initial instance of the browser. That is, you have a browser window being opened from another browser window. In this case, though, you are opening a browser window from a Notes client window – it’s not the same thing.

Subject: RE: Javascript not resizing browser window when called from notes client

Steven

I had this same problem, and I don’t think it can be done (or it’s not reliable, which amounts to the same thing).

I got around it by opening a form without parameters, and had that form (in its onLoad event) open the window with the attributes you require, and get THIS window to close the previous one…

opener.opener = top; // or whatever, as long as opener.opener has a value;

opener.close()

HTH

Subject: RE: Javascript not resizing browser window when called from notes client

Thanks you

Steven