Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Object Access


  • From: Michael_Dougherty at PBP.com (Michael Dougherty)
  • Subject: [Javascript] Object Access
  • Date: Wed Apr 23 14:10:53 2003

oRef = document.getElementById("ElementID")

is the the "approved" syntax for getting an object reference?
Is it worthwhile to write/use wrapper functions like this:

function getObjRef( tcObjectID ) {
  return document.getElementById( tcObjectID )
}

oRef = getObjRef("ElementID")
alert(oRef.value)

Why??