javascript - Dependent method registration | Element i.d. availability -


How can an event handler register the loaded elements in the DOM?

Just test them for first existence:

  var signup, Signin, bookmark; If (signup = document.getElementById ('signup')) signup.onclick = interface_signup; ...   

etc.

Comments