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

Open page in same custom window

Status
Not open for further replies.

SjrH

IS-IT--Management
Joined
Jun 24, 2003
Messages
747
Location
GB
I have a simple function that opens a new window of custom size with no toolbars -

Code:
function makeNewWindowTC()	{newWindow = window.open("tandcs.htm","","height=700,width=700")}

When this page opens there are a couple of links to pages that I would like to be opened in the same window. Using target="_self" in the link seems to still open another window complete with toolbars.
Is there a javascript way to open the links in the same window as was created with the function above?

Thanks
 
Why not give the custom window a name and refer to it by name in the target.

These links, are they in tandcs.htm?
 
Unless you have :

- a base element, or
- some script to target all links

on your page, there is no reason the links should open in a new window.

Do you have one of the above two things?

If not, suggest posting the code for "tandcs.htm".

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top