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!

DOM question

Status
Not open for further replies.

shaunk

Programmer
Aug 20, 2001
402
AU
I am referencing a portion of a form field name using the following statement:
document.forms(0).elements.name.substring(0,3)
This is working as expected :- it extracts the first 3 characters of the referenced form elements name field.

I am getting unexpected results when the arguments for the substring command are (3,3).

So I set out to find information on this command but find myself wondering if the substring function is part of DOM or COM or maybe even JavaScript or VBscript.

Can you direct me to a resource for this syntax.

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top