嗨,我在 asp.net 中使用 iframe 导航到该网站。当 iframe 加载了网站 url 时,我想将值传递给 iframe 内的文本框,如何将 iframe 内的值传递给输入类文本框。我已经尝试了很多,但我无法完成任务。请尝试帮助我这是我的代码
<script type="text/javascript">
function mf() {
document.getElementById("INPUT").setAtrribute("value", "myvalue");
}
</script>
</head>
//I TRIED TO CALL FUNCTION BY BOTH BODY ONLOAD AND IFRAME ONLOAD BUT IT DOSN'T WORK
<body onload="mf()">
<form id="form1" runat="server">
//I WANT TO PASS VALUE INSIDE IFRAME TO THIS WEBSITE TEXTBOX
<iframe id="yourid" src="https://www.iauc.co.jp/auction/prelogin01_en.jsp? timestamp=1361429737811" style="width:600px; height:600px;"> </iframe>
</form>
</body>