Ammin Zul: Tutorial: Auto New Window Bila Klik Link

Tutorial: Auto New Window Bila Klik Link


Hari ni ammin nak kongsikan dengan korang cara nak buat auto window bila klik link.
Tutorial ni ammin nak kongsikan dengan korang samaada yang 
dah lama berblog mahupun yang baru nak berblog tu..

ok. cara-caranya


1. Dashboard >Layout Add a Gadjet >  HTML/Java Script
2. COPY kod 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> 

3. PASTE kan. ok, siap. ^_^


SLAMAT MENCUBA