<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test</title>
</head>
<script type="text/javascript">
function changecontent(){
var oldcontentObj = document.getElementById("oldcontent");
var contentObj = document.getElementById("content");
if ( oldcontentObj.value == "" ){
alert('Please enter some characters!');
return false;
}else{
oldcontentObj.style.display = "none";
contentObj.innerHTML = oldcontentObj.value;
return false;
}
}
</script>
<body>
<form id="form1" name="form1" method="post" action="" onsubmit="return changecontent();">
<input type="text" name="oldcontent" id="oldcontent" /><span id="content"></span>
<input type="submit" name="Submit" value="submit" />
</form>
</body>
</html>
like this ?baby?