Subscribe via RSS Feed

Cool Javascript Tricks For Your Browser!

What is Javascript? According to Wiki : JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications. It is primarily used in the form of client-side JavaScript, implemented as an integrated component of the web browser, allowing the development of enhanced user interfaces and dynamic websites. JavaScript is a dialect of the ECMAScript standard and is characterized as a dynamic, weakly typed, prototype-based language with first-class functions. JavaScript was influenced by many languages and was designed to look like Java, but to be easier for non-programmers to work with.

But today, let me show you guys some cool Javascript tricks that can be used to trick our friends or family.. =)

Usage Method : Copy and paste these code to your browser address bar and hit Enter!

The tricks :

“The Webmaster”

javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0

- This code lets you edit any page of website in real-time.. If your using Firefox browser, you can even save the modified pages to your computer.. Sweet!

“Merry Go Round”

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(“img”); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+”px”; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+”px”}R++}setInterval(‘A()’,5); void(0);

- This code pull out all the image on the current webpage & rotate them in a circle.. The best place to test this code is at Google Image
- Change the tag “img” (in line 2) to “p” or “a” and wallah! Text or links is now rotating instead of images..

“Calculator”

javascript: alert(34343+3434-222);

- Edit the number inside the bracket & the answer will come in alert! =)

“Spoof Sites Tracker”

javascript:alert(“The actual URL is:\t\t” + location.protocol + “//” + location.hostname + “/” + “\nThe address URL is:\t\t” + location.href + “\n” + “\nIf the server names do not match, this may be a spoof.”);

- If youre doubt that the sites your visit is authentic, use the code above..

- All of the code above were tested & working with Mozilla Firefox & Internet Explorer Browser..
- Dont worry, all the code above is safe & not gonna blow your PC off.. ;)

Comments (9)

Trackback URL | Comments RSS Feed

  1. beliamuda says:

    pesal aku copy tak jadi? ke kena pakai apa2 lagi ni?
    beliamuda´s last blog ..(Gambar) Perodua MPV Alza

  2. KertaZ says:

    Er.. Browser ko javascript dia disable ke x?

  3. beliamuda says:

    ada yang jadi, ada yang tak…
    beliamuda´s last blog ..Selamat Hari Raya Aidiladha

  4. KertaZ says:

    Ada yg x? Pelik.. :aie:

  5. Taufik SM says:

    x jadi pun …nape ek ..
    Taufik SM´s last blog ..Gambar Tamara Bleszynski Berbikini

  6. KertaZ says:

    Hmm.. Aku guna smua javascript work elok plak.. :cool:

  7. hazim says:

    tak bole pon weh…

Leave a Reply




CommentLuv Enabled
:p 8) :lol: =( :8 ;) :(( :o: :[ :) :D :-| :-[) :bloody: :cool: :choler: :love: :oups: :aie: :beurk: