[Javascript] HTML Tag that can hold data for JavaScript?

Allard Schripsema allard-schripsema at procergs.rs.gov.br
Thu Feb 24 06:10:34 CST 2005


Hi,
You can use any tag you want including the <input type=hidden> tag
Give it a name or id and you can get the document.objectname.atributename
without any trouble.

Allard Schripsmea




-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of judah
Sent: Wednesday, February 23, 2005 10:08 PM
To: javascript at LaTech.edu
Subject: [Javascript] HTML Tag that can hold data for JavaScript?


What I'd like to do is create a tag that holds data that I can access in
Javascript like this:
<mycustomtag myProp1="myValue1" myProp2="myValue2"/>

but I don't know how to access the properties in js. I enumerated and
there was no properties. Is there a tag that exists that I can use? I
need it to be hidden because I only want to access it from js.

Judah


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.3.0 - Release Date: 2/21/2005

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list