Results 1 to 3 of 3

Thread: Javascript : parent.formMain.name.value -- Not working in Firefox [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Javascript : parent.formMain.name.value -- Not working in Firefox [RESOLVED]

    In the parent page I have this:

    Code:
    <form name="formMain">
          <input type="text" name="name" />
    </form>
    
    <iframe src="iframe.htm" width="300" height="300"></iframe>
    iframe.htm:
    Code:
    <input type="button" onclick="parent.formMain.name.value='new value'" value="Click me" />
    Works fine in IE, which most (if not all) of the clients will use anyway, but I use Firefox to develop and I wondered why it's not working
    Last edited by TomGibbons; Jun 3rd, 2004 at 04:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width