Did you know that...

admin

Administrator
Staff member
you can find out if your javascript function has been altered using the following code:

function somefunction()
{ a=b+1;
c=a-b;
}

somefunctionLength = (new String(window.somefunction)).length


So now you can mess with someone who decides to modify your code without asking you first by doing things like:
if(somefunctionLength!=123) document.body.innerHTML='mua-ha-ha';
:D :D
 
Back
Top