<html>
<body>
<script language="JavaScript">
function getAction(){
var actionValue = document.form1.action;
document.form1.msg.value = "Your form was submitted to the following URL:\n " + actionValue;
}
</script>
<form name="form1" action="http://www.w3cschool.cn/cgi-bin/process.pl">
Enter your street address:
<input type="text" name="address" size="40">
<br><br>
<input type="button" value="Submit"onClick=getAction()>
<br><br><br>
<textarea name="msg" rows="5" cols="62"></textarea>
</form>
</body>
</html>