On 17/05/16 08:36, Wally W. wrote:
> On Tue, 17 May 2016 10:17:52 +0100, Tim Streater wrote:
>
>> In article <
ec9a7a6b-b3af-4d83...@googlegroups.com>,
>> <
jonas.t...@gmail.com> wrote:
>>
>>> I decided to try write abit more modular code, but i have no real good example
>>> of how to do it.
>>>
>>> Lets say i have index.html and main.js, i do have figured out how to call
>>> main.js from index.html.
>>>
>>> But what i would like to know is how do i refer a form with a textfiel within
>>> index.html?
>>> Do the script know in which document the refered form reside?
>>>
>>> In HTML pages with inline/embedded javascript, i know one do it like this.
>>>
>>> document.myform.mytext.value = somedata;
>>>
>>> I never quite understood what document refer to in this case.
>>> I do have a memory passing data between frames, but never done it between a js
>>> and html file.
>>
>> Why don't you buy a good book on html, another good book on javascript,
>> and READ THEM.