onclick="doSomething();doSomethingElse();"
But really, you’re better off not using onclick
at all and attaching the event handler to the DOM node through your Javascript code. This is known as unobtrusive javascript.
More Related Contents:
- Disable a part of JavaScript code [closed]
- How to get children id when I click the parent?
- Show/hide ‘div’ using JavaScript
- How do I add a simple onClick event handler to a canvas element?
- HTML tag want to add both href and onclick working
- Javascript onclick function is called immediately (not when clicked)?
- Onclick javascript to make browser go back to previous page?
- javascript onclick event over flash object
- Including both href and onclick to HTML tag
- javascript get x and y coordinates on mouse click
- How can I disable HREF if onclick is executed?
- Changing button text onclick
- Howto: div with onclick inside another div with onclick javascript
- Javascript – Dynamically assign onclick event in the loop
- Call two functions from same onclick [duplicate]
- Change Button color onClick
- How can I stop an onclick event from firing for parent element when child is clicked?
- Change value of input and submit form in JavaScript
- Javascript click event listener on multiple elements and get target ID
- Attribute onclick=”function()” not functioning as intended?
- JavaScript button onclick not working
- onclick calling hide-div function not working
- onclick=”location.href=’link.html'” does not load page in Safari
- How can I make a browser to browser (peer to peer) connection? [closed]
- How to create a sticky navigation bar that becomes fixed to the top after scrolling
- How to format Vuetify data table date column?
- How can I retain the scroll position of a scrollable area when pressing back button?
- How does the location of a script tag in a page affect a JavaScript function that is defined in it?
- Gaussian Blur onHover Using jQuery
- find words in html page with javascript