René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

Reading the value of a text entry field with JavaScript

<html>
<head>

<script>
  function show_inputs_content() {
    alert(document.frm.val.value) 
  }
</script>

</head>
<body>

<form name='frm'>
      <input name='val' type='text'>

  <p><input type='button' value='Show Message Box' onClick='show_inputs_content();'>

</form>


</body>
</html>