How to Fire Personal Event in Javascript

前端 未结 6 1888
闹比i
闹比i 2020-12-13 11:15

I can\'t fire personal events using Javascript in IE. In Firefox work great.

My code is:

var evento; 
if(document.createEventObject)  
{  
   evento         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 11:45

    You may want to consider using a library to abstract this. Both prototype an jquery will handle this for you. Jquery is especially good at allowing you to create an event with very simple code.

    Jquery's documentation is available here: http://docs.jquery.com/Events

提交回复
热议问题