Tim Streater
5/18/2016 7:59:00 AM
In article <nhgcs1$7b8$1@dont-email.me>, Aleksandro
<aleksandro@gmx.com> wrote:
>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-9b28-e9fff5c24f4b@googlegroups.com>,
>>> <jonas.thornvall@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.
>
>Why buy? everything is one web-search-engine search away.
A book is a good reference. It may not be 100% up to date, but with the
sort of questions being asked that hardly matters. And it will likely
have a good *introduction* which will answer all these naive questions.
--
"The idea that Bill Gates has appeared like a knight in shining armour to
lead all customers out of a mire of technological chaos neatly ignores
the fact that it was he who, by peddling second-rate technology, led them
into it in the first place." - Douglas Adams