Forum Moderators: open

Message Too Old, No Replies

HTML Help

         

a1domain

4:26 am on Oct 19, 2006 (gmt 0)

10+ Year Member




Hello Big Brothers

When i click on my website links its open in same browser windows , I want to Open it in another Browser Window so What should I have to do

Thanks in Advance

adb64

5:03 am on Oct 19, 2006 (gmt 0)

10+ Year Member



Add a target="name" to the a tag.
Example:
<a href="..." target="_blank">...</a> will open each link in a new window
<a href="..." target="somename">...</a> will open each link in a window with the name 'somename'. When it does not exist yet a new window will be openend.

a1domain

8:30 am on Oct 19, 2006 (gmt 0)

10+ Year Member




Is there any code that I can add at starting of page or in my CSS file that open each link in new window?

tedster

8:38 am on Oct 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not css - but html. You can use the base element and place it in the <head> section.

<base target="_blank"> -- will open every link on the page in a new window
<base target="[somename]"> -- will open a new window (with the name "somename") when the first link is clicked on. If that window stays open, every other link will load in that one new window.

That's the same behavior that adb64 listed above, but achieved with one line in the head insted of modifying every link.