Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defining third window settings

Status
Not open for further replies.

decibelle

Technical User
Feb 1, 2005
27
US
1. From Page A, I have a button that links to a Page B in a new browser window, with specified window size. I used the code below:

href="javascript: NewWindow = window.open('open_pageB.htm','fullpopup','width=500,height=650,scrollbars,resizable,status');NewWindow.focus();"


2. This works fine so far and we have 2 windows open, Page A and Page B. Then in Page B, I have a button in which I'd like to open another third new window Page C. I used the same code above expecting a third window to be open, but:
if Page A and Page B are open, Page C displays in the same window as Page B.
if only Page B is open, Page C will then open in a new window.
So to try to fix this, I removed the javascript portion in Page B and replaced with "target":

href="capvid_stopcap.htm" target="_blank"

So this works fine now, except now I'm not sure how to specify browser window size and remove browser buttons, etc. Is there a better to write this?

TIA for your help!
 
If you remove the second parameter in calling window.open() you should get a third window:

href="javascript: AnotherNewWindow = window.open('open_pageB.htm',[red]''[/red],'width=500,height=650,scrollbars,resizable,status');AnotherNewWindow.focus();"

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top