/ Published in: JavaScript
Expand |
Embed | Plain Text
function f (idOrEl) { var el = (typeof idOrEl == 'string' ? document.getElementById(idOrEl) : idOrEl); }
You need to login to post a comment.
noah on 06/12/07
1 person have marked this snippet as a favorite
function f (idOrEl) { var el = (typeof idOrEl == 'string' ? document.getElementById(idOrEl) : idOrEl); }
You need to login to post a comment.