javascript - Dependent method registration | Element i.d. availability - Get link Facebook X Pinterest Email Other Apps 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
Comments
Post a Comment