Populate text box with JavaScript on PageLoad
- by Etienne
I have a text box called txtName on my form.
In my page I know I need to place the code in my HEAD tag like so......
<script type='text/javascript' language="javascript">
document.forms['FormName'].elements['txtName'].value = "Robert"
</script>
But I cant seem to set a value inside my text box.