Try this
function zoom()
{
alert("test!");
}
document.getElementById("us").onclick=zoom;
More Related Contents:
- How to open javascript menu with click & close with mouse out
- Change background image php loop [closed]
- Call ASP.NET function from JavaScript?
- $(document).click() not working correctly on iPhone. jquery [duplicate]
- React onClick function fires on render
- onClick not working on mobile (touch)
- Why is this jQuery click function not working?
- Javascript onclick function is called immediately (not when clicked)?
- Onclick event not firing on jsfiddle.net [closed]
- Accessing control client name and not ID in ASP.NET
- javascript onclick event over flash object
- Including both href and onclick to HTML tag
- Attaching click event to a JQuery object not yet added to the DOM [duplicate]
- Leaflet- marker click event works fine but methods of the class are undefined in the callback function
- javascript get x and y coordinates on mouse click
- How can I disable HREF if onclick is executed?
- Howto: div with onclick inside another div with onclick javascript
- Detect if button click real user or triggered by a script
- Missing click event for inside element on firefox
- Call two functions from same onclick [duplicate]
- JavaScript: Invoking click-event of an anchor tag from javascript
- Change Button color onClick
- How can I stop an onclick event from firing for parent element when child is clicked?
- jQuery function not binding to newly added dom elements
- How to add click event to an element?
- onclick() and onblur() ordering issue
- onClick Function “this” Returns Window Object
- jquery use of bind vs on click
- Function not calling within an onclick event
- onclick calling hide-div function not working