recent posts

Tuesday, 23 April 2013

Tutorial: Open Link In New Tab

 Sila ikut step di bawah untuk jadikan Open Link In New Tab di blog anda:


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

2. Copy code yang di bawah



<!-- 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. Paste code kemudian SAVE.