01.
<
input
02.
type
=
'button'
03.
value
=
"IFRAME にアクセス"
04.
onclick
=
'document.getElementById("sub").contentWindow.document.getElementById("fld").value="IFRAME"'
05.
>
06.
07.
<
iframe
08.
id
=
"sub"
09.
src
=
"sub.htm"
10.
frameborder
=
"1"
11.
scrolling
=
"1"
12.
width
=
"600"
13.
height
=
"300"
14.
></
iframe
>