|
|
|
|
|
для: aexb
(17.11.2006 в 19:42)
| | function add_frame() {
theframe.document.getElementById("child").focus();
} | |
|
|
|
|
|
|
| Есть родительский документ index.html:
<html><head><script>
function add_frame() {
.......
}
</script></head><body>
<input type="button" onclick="add_frame()" value="clickme"><br>
<iframe name="theframe" width=600 height=300 src="frame.html">
</iframe></body></html>
|
И есть фрейм frame.html:
<html><head></head>
<body><input type="text" name="child" id="child" width=300></body>
</html>
|
Вопрос: как написать функцию add_frame(), чтобы получить доступ к полю "child"? Бьюсь с ИЕ уже минут 40 :-( | |
|
|
|
|