父
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<iframe src="http://xiawenyi/index.html" id="ifr" width="" height=""></iframe>
<br />
<br />
<input type="text" name="" id="clickMe" onclick="alert('clicked');" value="" placeholder="输入内容" />
<button>写入iframe</button