Skip to main content David Edelstein's Blog

🦙
🦙

Inspect function in javascript

Published: 2010-10-19
dave@edelsteinautomotive.com
David Edelstein
function inspect(){ var x="'enter some javascript'"; while(x!=""){   try{   var out=eval(x)+"";   }catch(e){out=e.message;}   x=prompt(out,out); } throw "quit"; }

useful in internet explorer when your worksite won’t install ie developer tools.