Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I access extra tag info from JavaScript?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Dear Colleagues,

I have a challange in making a page (for both IE and Netscape,
both version >= 4). That page should contain an inputbox, and some extra information (metadata) about the inputbox, which I have to use

in JavaScript for checking the information on the client and displaying a correct infomative message to the user.

I tried things like:
<INPUT NAME=&quot;T1&quot; MSG=&quot;This is textbox 1&quot; ID=&quot;FirstTextbox&quot; VALUE=&quot;123&quot;>

The problem is that I cannot access extra information in a tag in Javascript in Netscape (IE has no troubles displaying the extra

attributes like MSG).

I wondered if it is possible to add extra info with things like a <SPAN> or <DIV> tag in such a way that I can access it both in Netscape

and IE. I actually need only one extra value for now, but in future I might require more than one.

Any help would be greatly appreciated!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top