Parse hexidecimal string : parseInt « Global « JavaScript Tutorial
- JavaScript Tutorial
- Global
- parseInt
<html>
<body>
<script language="JavaScript">
<!--
document.write("The hexidecimal string FA832B converted to an integer is: ");
document.write(parseInt("FA832B", 16) + "<br>");
-->
</script>
</body>
</html>