Friday, May 20, 2011

Some useful instant javascripts for web developers....

All these scripts must run in browser address bar.
 
  1. This will ask you to enter the javascript code you want to execute from browser against current page
 
javascript:var a=eval(prompt('Enter JS'));
 
  1. This will show you cookies planted by current site
 
javascript:alert((document.cookie));
 
  1. This would show you the size of viewstate generated on an ASP.NET page
 
javascript:alert(document.getElementById(prompt('Enter variable name:','__VIEWSTATE')).value.length/1024 +'kb');
 
  1. This would resize your browser to standards 1024 layout to check the page layout constraints
javascript:window.resizeTo(1024,768);
 
I normally keep them handy in favorites!
 
 
Mehul Trivedi
trivedimehulk@gmail.com
 
 
 

No comments:

Post a Comment