www.webdeveloper.com
Results 1 to 2 of 2

Thread: event.srcElement.id

  1. #1
    Join Date
    May 2012
    Location
    chennai
    Posts
    2

    Exclamation event.srcElement.id

    Hi all,
    event.srcElement.id is not working in my application i dont know why anyone please assist me to do that.

  2. #2
    Join Date
    May 2011
    Location
    Lancashire
    Posts
    35
    Hi!
    what browser are you running it in (window.event.srcElement.id is IE specific)

    evt.target.id works in other browsers (i.e. W3 compliant browsers)

    I used the following code in a drag and drop application:

    if(!evt){
    evt=window.event;
    }
    var objectID=(evt.target)?evt.target.id : ((evt.srcElement)?evt.srcElement.id:null);

    hope this helps!
    LF

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles