[Javascript] How to refer to an HTML element's ID attribute

BEKIM BACAJ trojani2000 at hotmail.com
Thu Nov 13 22:58:47 CST 2003


take this;
if elements ID is ID="myelement"
you an refere to it simply with:
myelement.style.pixelWidth='100' f.i., this is direct access and attribute 
set through js
any other reference to it is simply its id name.


>From: Robert Pollard <rpollard at apple.com>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: javascript at LaTech.edu
>Subject: [Javascript] How to refer to an HTML element's ID attribute
>Date: Thu, 13 Nov 2003 15:59:11 -0800
>
>Hello all,
>
>What is the syntax to refer to an HTML element's ID attribute?
>
>Thanks,
>
>Robert Pollard
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail




More information about the Javascript mailing list