Search This Blog

Showing posts with label JAVA TRICKS. Show all posts
Showing posts with label JAVA TRICKS. Show all posts

Tuesday, 23 August 2011

JAVA TRICKS

TRICK 1.
REVEAL PASSWORD USING JAVASCRIPT:
Reveal*****(Asterisk) Pasword Using Javascript.Follow the steps given below:

 1.  Open the Login Page of any website (Ex- http://www.gmail.com/)
 2.  Type "Username" & "Password"
 3. Copy & Paste the JavaScript Code given bellow into ur Broswer's add bar & hit Enter

javascript: alert(document.getElementById('Passwd').value);

OR

javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})(); 

 4. As soon as u hit 'Enter',A window pops up showing Password typed by you.
........................................................................................................................

TRICK 2.
HOW TO EDIT/CHANGE ANY WEBSITE DESIGN:
1. Go to any website you want.
2. Then write in your the browser link this script

JavaScript:document.body.contentEditable='true'; document.designMode='on'; void 0

and hit enter
3. And now you can change what ever you want..
4. But the bad thing is that you cannot save it.
........................................................................................................................

TRICK 3.
IMAGES FLY OVER WEB PAGE: 
1. Go to any website you want.
2. Then write in your the browser link this script

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);

4. As soon as u hit 'Enter' images fly over webpage.
........................................................................................................................