Minggu, 28 Agustus 2011

Cara membuka new tab tanpa right click


Photobucket1. Dashbord-->Design-->Add a gadget--> Html/Javascript

Photobucket2. Copy code bawah ini dan pastekan di Html/Javascript


<!-- 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>

Photobucket3. Save !

Sekarang pergi tengok blog korang untuk lihat hasilnya Photobucket
Credit to : http://anis-diyana.blogspot.com/2010/12/tutorial-membuka-new-tab-tanpa-right.html

0 komentar:

:10 :11 :12 :13 :14 :15 :16 :17
:18 :19 :20 :21 :22 :23 :24 :25
:26 :27 :28 :29 :30 :31 :32 :33
:34 :35 :36 :37 :38 :39

Poskan Komentar

Related Posts Plugin for WordPress, Blogger...