Hi,
To remove the text from a text box whenever a user clicks on the text box, ue may use the following code.
<html><head><title>(Type a title for your page here)</title>
<script type="text/javascript">
function make_blank() {
document.form1.type.value = "";
}
</script>
</head>
<body >
<form name=form1 method=post action='test.php'>
<b>Type</b><input type=text name=type value='Enter your user id' onclick="make_blank();">Enter User ID
<input type=submit value=Submit> </form>
</body>
</html>
0 comments:
Post a Comment