From: Dr J R Stockton on
In comp.lang.javascript message <050bbfd2-37de-42c8-bce2-0809d3b7940a(a)e2
7g2000yqd.googlegroups.com>, Fri, 22 Jan 2010 03:22:05, panore
<sunil(a)cybersurfindia.com> posted:
>Hello Friends,
>
>I have a parent page containing an iframe which load an another page
>with radio buttons in it.
>
>Now i have to get the iframe radio buttons from the parent page to
>work on.
>
>I have used the following script to get the radio button but didint
>worked
>
>i.e
>window.frames['frame01'].document.getElementById('idname')
>top.document.getElementById('iframe').form[0].elements
>parent.document.getElementById('iframe').form[0].elements


<URL:http://www.merlyn.demon.co.uk/linxchek.htm> loads an iframe and
reads its links, anchors, and source text; reading it might help you.


Your "didint worked" is not helpful - perhaps you are a guess'n'pray
coder - you should say what happened and what error messages your
browser showed.

You can build up such expressions element by element, testing with
alert(typeof ...) at each step to see which parts work.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF3 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
 | 
Pages: 1
Prev: to know
Next: Culprit for page editing problem?