Mega Code Archive

 
Categories / JavaScript DHTML / Javascript Objects
 

ParseInt() Example

<html> <body> <button onclick="alert(parseInt('12.34'));">parseInt('12.34')</button> <button onclick="alert(parseInt('Hello'));">parseInt('Hello')</button> </body> </html>