یک صفحه html به نام index.html داریم که یک iframe توش وجود داره:
این هم محتوی فایل iframe.html هست:
می خوام بوسیله جاوا اسکریپت، از داخل صفحه index.html به فیلد name که در iframe.html وجود داره دسترسی داشته باشم یعنی بتونم مقدارش رو بدست بیارم یا تغییرش یدم.
با IE و FF کار کنه. هزینه اش هم میدم.
HTML:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<p>
<iframe name="myiframe" src="iframe.html">
Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
</p>
</body>
</html>
این هم محتوی فایل iframe.html هست:
HTML:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<form name="myform" method="POST" action="send.php" id="myform">
<input type="text" name="name" size="20">
<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2">
</form>
</body>
</html>
می خوام بوسیله جاوا اسکریپت، از داخل صفحه index.html به فیلد name که در iframe.html وجود داره دسترسی داشته باشم یعنی بتونم مقدارش رو بدست بیارم یا تغییرش یدم.
با IE و FF کار کنه. هزینه اش هم میدم.