IE Event is null

28 views
Skip to first unread message

Prescot

unread,
Oct 6, 2012, 3:11:07 PM10/6/12
to wa...@googlegroups.com
Hi all

I am trying to simulate event in IE. 

                input.set.value("newValue");
                input.trigger("blur");

HTML code:
<input type="text" id="email" name="email" onblur="test()">

and the function "test"

function test(){
alert("1");
alert(event.srcElement);
}

when I try it manually in IE ,I get it work perfectly, but when I run using Webspec  it pop's up the first alert but then says: "Unable to get value of the property 'srcElement': object is null or undefined".
Why when I run Webspec it simalates the event but then it says that the event is null?

Thanks

Reply all
Reply to author
Forward
0 new messages