I was able to get this working using the following script block format, but I’m still curious if this is the best way:
<script for="MyControl" event="ReceiveMessage(msg)">
alert(msg);
</script>
More Related Contents:
- Why are inline event handler attributes a bad idea in modern semantic HTML?
- jQuery .live() vs .on() method for adding a click event after loading dynamic html
- How to stop event propagation with inline onclick attribute?
- What’s the difference between event.stopPropagation and event.preventDefault?
- phantomjs not waiting for “full” page load
- Firing event on DOM attribute change
- Launch Bootstrap Modal on Page Load
- How to find out which JavaScript events fired?
- Javascript event handler with parameters
- event.preventDefault() vs. return false (no jQuery)
- Getting value of HTML Checkbox from onclick/onchange events
- Watch multiple $scope attributes
- How to unbind a listener that is calling event.preventDefault() (using jQuery)?
- Handling key-press events (F1-F12) using JavaScript and jQuery, cross-browser
- Javascript: How to detect if a word is highlighted
- How can I execute a function on pressing the enter key in an field?
- How can I listen for a click-and-hold in jQuery?
- Throttle event calls in jQuery
- How do you detect the clearing of a “search” HTML5 input?
- JS Events: hooking on value change event on text inputs
- Is it possible to programmatically catch all events on the page in the browser?
- Remove key press delay in Javascript
- Javascript multiple dynamic addEventListener created in for loop – passing parameters not working
- jquery/javascript: function(e){…. what is e? why is it needed? what does it actually do/accomplish?
- Angular 2 Hover event
- Is there an equivalent to e.PageX position for ‘touchstart’ event as there is for click event?
- Fire oninput event with jQuery
- ActiveX – Automation Server Can’t Create Object
- How to capture browser close event?
- Javascript Event Handler for Print