Sunday, October 23, 2011

Open New Tab



A s s a l a m u a l a i k u m

Macam mana nak buat Open New Tab nie ?? Korang dah tengok blog saya kan ???
bila klik je link terus pegi ke new tab bukan ?? jadi kalau korang nak buat macam
saya jom ikut Tutorial dekat bawah ini ok ^^

 Klik Layout > Add a Gadget > HTML/JavaScript
 Korang copy code di bawah ini :-

<!-- 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>
 Your URL tu korang masukkan URL blog korang ok 
  Dah siap boleh la save 

Selamat Mencuba Tutorial Nie ^^

No comments :

Post a Comment

Assalamualaikum...
Sila tinggalkan Comment anda ^^

 

Since 2010-2017 | Copyright by © Ayu Barbydol. Design by me Ayu Barbydol