i am on a pc using javascript and chrome. the issue is the following
<a href="#" onClick="classClick(event,1)"
This is not working in chrome, but is working perfeclty in FF. I tried "onChange" as was recommended by some results on a search, but still no luck. Any hints?
views:
26answers:
2
A:
What exactly isn't working and what are you trying to do?
I just tested this on chrome and it worked
<a href="#" onClick="alert('flag')">Flag Link</a>
Kusanagi2k
2010-08-31 19:54:05
A:
thank you for answering the question, i did not pose it in the way i intended. this is for legacy if anyone stumbles upon this question.
this code works for translating an event in FF,IE, and Chrome on PC. i will edit later for Mac compatibility if need be for safari.
<span onclick="multiBrowserEventHandling(event)">Trigger</span>
<script>
function multiBrowserEventHandling(e){
if(e.srcElement==undefined){
e=e.originalTarget.innerHTML;
}else{
e=e.srcElement.innerHTML;
}
}
</script>
jason m
2010-09-01 18:00:01