Donate SIGN UP

Open in new window HTML

Avatar Image
MTIH1992 | 23:00 Thu 06th Jul 2006 | Technology
3 Answers
How do i make a page in my website to open in a new window when it is clicked, using HTML?
Gravatar

Answers

1 to 3 of 3rss feed

Best Answer

No best answer has yet been selected by MTIH1992. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
in the anchor table (<a>) add a target element. Something like...

<a target='_blank' href="www.bbc.co.uk" target="mywindow">

The name inside the target will open a window with that ID so subsequnt clicks will divert to that window if it is already open.
That didn't work too well... you only need the one target element.
However, it's a bad idea to force new windows to be opened. If your visitor wants it in a new window, he can easily open it in one himself.

1 to 3 of 3rss feed

Do you know the answer?

Open in new window HTML

Answer Question >>