1
2
3
4
5

Automatic New Tab

Automatic new tab 

tuto kali ni , kalau korang tekan link atau gambar dekat post blog korang , dia akan terus automatic new tab. 
korang try la :) 

1. Dashboard > Template 
2. tekan ctrl + f > taip </html>
3. copy code dekat bawah ni . jangan lupa tekan ctrl + c untuk copy .

<!-- 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>
4. paste dekat bawah </html>

5. preview and save .




Thursday, September 6, 2012 • 11:35 PM


credit