General discussion

Locked

Open Link in a new window

By geogld ·
How do I go about opening a new window so as to display a link from my home page that will appear in this new window. Closing this new page will leave me displaying my home page without reloading it.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Open Link in a new window

by fgarber In reply to Open Link in a new window

The syntax is as follows
<a target="viewer" href="http://thepage.youwant.todisplay">Your text for the link</a>
I'm not sure about the quotes around viewer. If this doesn't work try it with out the quotes.

Collapse -

Open Link in a new window

by geogld In reply to Open Link in a new window

Poster rated this answer

Collapse -

Open Link in a new window

by Peyison In reply to Open Link in a new window

Try this:

<a href="#" onClick="window.open('new_page.htm','NewWindow','width=700,height=400,scrollbars=yes,menubar=no,resizable=no,status=no')">Open new window</a>

This will open the page new_page.htm into a new window with the settings specified. The name of the window will be NewWindow. You can also include top= and left= to specify the location of the window.


Hope this helps.

Hope this helps.

Collapse -

Open Link in a new window

by geogld In reply to Open Link in a new window

Poster rated this answer

Collapse -

Open Link in a new window

by geogld In reply to Open Link in a new window

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums