javascript之原网页显示内容

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>信息统计</title>
</head>
<script type="text/javascript">
function add()
{
	var policy=document.getElementById("policy").value;
	document.getElementById("show_policy_here").innerHTML=policy;	
	}
</script>

<body>
<p id="show_policy_here">show policy</p>

<textarea name="policy_area" id="policy" rows="3" cols="100">policy here</textarea>
<button type="button" name="submit" onclick="add()">提交</button>


</body>
</html>
发布了28 篇原创文章 · 获赞 0 · 访问量 324

猜你喜欢

转载自blog.csdn.net/weixin_45003282/article/details/102929646