View Single Post
  #2 (permalink)  
Old November 7th, 2003, 11:23 AM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

<script>
function setDefaults(){
    if(document.form.myTextBox.value==""){
        document.form.myTextBox.value = "default value";
    }
}
</script>

<body onLoad="setDefaults();">

Peter
------------------------------------------------------
Work smarter, not harder.
Reply With Quote