How to Fire Personal Event in Javascript

前端 未结 6 1899
闹比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 12:12

    As I read the relevant MSDN article page on the createEventObject method, it appears as though it isn't used for creating custom event - it is used for creating custom objects that can be passed to already existing events.

    Description: Generates an event object to pass event context information when you use the fireEvent method.

    http://msdn.microsoft.com/en-us/library/ms536390%28VS.85%29.aspx

    Update: You are getting the "invalid arguments" error because 'eventoPersonal' is not an acceptable event to fire.

提交回复
热议问题