FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


back link code





mustaq
Hi webmaster when i provide back link from my website with back link button i want when some one clik the button should open in new window should not break my window can you give me the code
Alie
Take it Wink :
Code:
<a href="URL" target="window" title="link_title">Link text or a picture</a>

You have 3 kinds of tag "target":
1. _blank - to onen link in a new window.
2. _self - to open a link in the same window.
3. _parent - use it for frames.
Example:
Code:
<a href="http://www.frihost.com" target="_blank" title="Fri Host">Frihost.com</a>

Understood? Cool
dandelion
Please note you can't use the target attribute with strict schemas (HTML 4.01 Strict, XHTML 1.0 Strict and XHTML 1.1) because this attribute is deprecated there.

You can stiil use, however, Javascript as shown below (works with buttons as well).
Code:
<a href="javascript:void(0)" onclick="window.open('http://www.example.com/')">Link</a>

It required Javascript be supported and enabled in the browser though.
mustaq
yaa now i under stand well if i use java script for the link i think user should have java in there system if i am right what will happen if there dont have java in there machine will it work ?
SamiTheBerber
mustaq wrote:
yaa now i under stand well if i use java script for the link i think user should have java in there system if i am right what will happen if there dont have java in there machine will it work ?

It doesn't need java, just javascript. They are different.
Related topics
Simulating the back button
Some php probs..need some help plzz!
Looking for link exchanges
Automatic download start !!
How to check back link?
link in phpBB
Need someone who can work on frames!
cannot add data to mysql from PHP form
Advertize on my site for free
opt-out link code
Need Link for my New Site.
Where the heck do I start?
protect my administration pages.
back link is the best
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.