SyntaxFix
Write A Post
Hire A Developer
Questions
Yes you can simply say:
function getID(oObject) { var id = oObject.id; alert("This object's ID attribute is set to \"" + id + "\"."); }
Check this out: ID Attribute | id Property