[Javascript] Firefox - write to form boxes

SkyScanner skyscanner at eircom.net
Thu Nov 3 13:00:06 CST 2005


Thanks - I guess I was just getting lazy writing 'minimum code'. My
Javascript book (QUE Using JavaScript by Paul McFedries) says it is OK to do
things like that, and IE is quite happy, but obviously FF is not impressed.

Tim in Ireland


----- Original Message ----- 
From: "diego nunes" <dnunes at gmail.com>

    Because your code is simply wrong.

    "parent.map.F7"? What does it means? "parent" object doesn't have
a property called "map". This code will never work.

    Try this:

window.parent.frames['map'].document.forms['F7'].elements['box1'].value='bla
bla';

  Amplexos.

On 03/11/05, SkyScanner <skyscanner at eircom.net> wrote:
> parent.map.F7.box1.value = 'Test1';
>
> Viewing the above link in Internet Explorer, and clicking on the button,
> writes the values into the form boxes, but with FireFox it doesn't. Why?




More information about the Javascript mailing list