Access DOM Object in an attached event
let’s say you have a link on the page that you want to attach an onclick event to
and assume addEvent is a method created to support both IE and FF
Under Firefox, if you want to access the linkObj, you can simply use “this”
Under IE, you can’t use “this” because “this” will referrer to the document objectlinkObj.addEvent(”click”, function(){
alert(this.href);
})
instead, you have to use srcElement, and pass in e as an argument
linkObj.addEvent(”click”, function(e){
var thisObj=e.srcElement;
alert(thisObj.href);
});
The thing about java in different platforms are the fundamental differences in codes for them.
ReplyDeletewhite label seo
And the same goes for other scripts and programming languages.
ReplyDeleteweb design perth
Right Finn and Melissa. Coding and other programming languages is essential for every web developer.
ReplyDeletelos angeles seo
Fon perde modelleri
ReplyDeleteMobil Onay
MOBİL ODEME BOZDURMA
nft nasıl alınır
ankara evden eve nakliyat
trafik sigortası
DEDEKTOR
site kurmak
aşk kitapları