Automatik New Tab



Hello peeps...

korang perasan tak setiap kali korang nak bukak 
link laen dalam blog dila ni...
tibe2 akan terbukak kat new tab..

ok,skunk dila nak ajar camne nak wat camtu

Dashboard > Design > Add A Gadget > HTML JavaScript

Copy code bawah ni
<!-- 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>
Pastekan di ruangan HTML JavaScript

Save!

Tengs For Read

0 00 ♥LOVE♥: