2.10.11

Tutorial : Open Link In A New Tab

Author : Nabila Medan Time : 10/02/2011 09:48:00 PM Total Comment : 0 Label :


Please Do Not Copy this tutor n Put this Tutor In Your Blog !
If You Want Copy This Tutor PLEASE Create Credit From Me!
Ikut Step Ini :


1.Dashboard > Design > Add a Gadget > HTML / JavaScript

2.Copy code yang kat bawah ni and paste dibhgian HTML/JavaScript

<!-- code for turning all non-blog links to new page links -->
<script type="text/javascript" language="javascript">
var arr = document.getElementsByTagName("a"); //get all links in the page
for(var i = 0; i < arr.length; i++)
{
if(arr[i].href.indexOf("Your URL") < 0 //not links that are 'inside' blog
&& arr[i].href.indexOf("javascript:") < 0) //not javascript links
arr[i].target = "_blank";
}
</script>


3.Dah ? SAVE!

Related Posts Plugin for WordPress, Blogger...