What is the syntax to make this work in FF?

Discussion in 'JavaScript' started by mopacfan, Mar 12, 2007.

  1. #1
    This is my code that works in IE:
    	window.opener.quoteinfo.drawingname.value = document.fileload.drawingfile.value;
    Code (markup):
    But Mozilla does not like "window.opener"

    Any suggestions?
     
    mopacfan, Mar 12, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    window.opener does work in Firefox. Check the error console and see what error you get. (Tools -> Error console)
     
    nico_swd, Mar 12, 2007 IP
  3. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The console is how I found that this was the error. It turns out that I needed to add .document after .opener and then reference the form and the field. All is good now. Thanks
     
    mopacfan, Mar 12, 2007 IP