OZONE Asylum
Forums
Stupid Basic HTML
new window
This page's ID:
23446
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hey Bugs! Well.... here's something that i found, for a different (nicer, maybe?) way of doing it. Specify your old target=_blanks as follows: [code]<a href="http://www.google.com.au/" rel="external">new window</a>[/code] THEN.... put this little script goody in your code as well! [code]<script type="text/javascript"> function externalLinks(){ if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++){ var anchor = anchors[i]; if (anchor.getAttribute("href") && anchor.getAttribute("rel") =="external") { anchor.target = "_blank"; } } } window.onload = externalLinks; </script>[/code] it's compliant, and it works. whether it's the best solution for you.... well, that's for you to decide, isn't it! :D reitsma
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »