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??
- Prev by Date: [Javascript] Directly addressible options
- Next by Date: [Javascript] Directly addressible options
- Previous by thread: [Javascript] Directly addressible options
- Next by thread: [Javascript] Object Access
- Index(es):