日期:2014-05-16 浏览次数:20299 次
<!DOCTYPE HTML>
<html>
<body>
<form method="post" name="myform">
<fieldset>
<legend>Question 0:</legend>
<label>What is your name? </label><br>
<div><textarea name="answer0" id="answer0" rows="" cols=""></textarea></div>
</fieldset>
<input type="button" style="width: 100px" onClick="javascript:localstore()" value="Done" title="Submit the symptom"/>
</form>
</body>
<script type="text/javascript" defer=true>
function localstore(){
document.write("Start");
var answerContent = document.getElementById("answer0");
alert(answerContent);
}
</script>
</html>