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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display two windows simultaneously

Status
Not open for further replies.

Charlix

Programmer
Nov 19, 2002
85
US
I have a 'help manual' that I call from an asp page with the following code:

<a href="html\HelpManual.chm" > Help Manual</a>

This puts the Help Manual in a separate window above the asp page. When I click the ‘x’ in the upper right hand side of the window the window closes and the asp page shows.

However, if I use the following code to show a particular page in the instruction manual, the original asp page is replaced by the help page.

<a href="html\HelpPage.htm" > Help Page</a>

Now if I close the help page by clicking the ‘x’ in the upper right hand side of the window the original asp page is gone.

How do I get a window that simply resides on top of another window, without replacing it?

Charix

 
Hope this helps.
Code:
<a href="#" onClick=window.open("html\HelpManual.chm","","menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0")>Help Manual</a>

 
Or you can avoid the Javascript (but get a standard new window) with a simple addition of the "target" property:
Code:
<a href="html\HelpPage.htm" target="_blank">Help Page</a>
If you want the new pages to always open in the same window, rather than specifying "_blank" (which will always open a brand new window), you can give the window a name of your choosing, which will be reused if the user clicks on another link with the same target, like this:
Code:
<a href="html\HelpPage.htm" target="MyWindow">Help Page</a>
 
Thanks Genimuse, your code snipet worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top