this is the code it is not inside html it is javascript only function handler_TWTmini4_onClick(mouseev){ }
you can do it via a javascript console, for example Firebug. but you will be the only one that can use it, if you intend to make it accessible by other users you need to include it in a script that is already exists in the page..
Ok but what is the code I need to type into the current code to make it happen? I have not written the code like this before and I can't work it out, sorry I a a real newbee to this.
you need first to identify the element you want to add the onclick event.. if it has an id attribute, you can use document.getElementById. if not you will need to identify it by the nearest element with an id the code would be: function handler_TWTmini4_onClick(mouseev){ ... } document.getElementById('the_id').onclick = handler_TWTmini4_onClick; Code (markup):