'createEventObject()' Example : createEventObject : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » createEventObject »

 

'createEventObject()' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var myEvent = document.createEventObject();
    parent.document.all.myButton.fireEvent("onclick", myEvent);
    event.cancelBubble = true

function function2() {
    alert('hello');
}
</script>
<button onclick="function1();">Click to see alert from</button>
<button id="myButton" onclick="function2();">Click here to see alert</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» createEventObject