Hi Folks,
I am trying to run a sample javascript code from the link: Link
Nothing happens on FF and on IE, after scanning, it just clears out the text field. What is the issue here?
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="javascript">
function ini()
{
// Retrieve the code
var code =document.getElementById ('code_read_box').value;
alert(code);
// Return false to prevent the form to submit
return false;
}
</script>
</head>
<body>
<form onsubmit = "return ini()">
<input type="text" id="code_read_box" value="" />
</form>
</body>
</html>