ublapach Posted April 22, 2008 Share Posted April 22, 2008 Can anyone tell me how to erase whats in a text box when you go to input somthing in it like the boxes intial value would go away when you clicked in it Quote Link to comment Share on other sites More sharing options...
zenag Posted April 22, 2008 Share Posted April 22, 2008 <html> <head> <script type="text/javascript"> function srch() { document.getElementById('search').value=""; } </script> </head> <body> <input type="text" onclick="srch()" name="search" id="search" value="search..." /> </body></html> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.