<html> <head> <title>Show Childs</title> <script> function r() { document.divak.innerHTML="HIIHIHIHI" } </script> </head> <body> <form name="form"> <input type="button" value="r()" onClick="r()" name="bs" style="width: 30px;"> </form> <div name="divak"></div> </body> </html>
onclick="this.style.width = parseInt(this.style.width)-10+'px'"
alert( typeof parseInt('1') );
alert('08'|0); // 8 alert(parseInt('08')); // 0
alert( typeof parseInt([]) );
>>> parseInt([]) NaN