Hi,
Does anyone know why I can't add return false with addEventListene r in
firefox (1.0.6).
This demonstrates the problem
If return false is added to onmousedown then you can drag over the
image which you can do to myImg1 but not myImg2.
myImg3 just shows that the code should work as an alert is added to
this one.
<img name="myImg1" id="myImg1"
src="http://www.google.co.u k/intl/en_uk/images/logo.gif"
onmousedown="re turn false">
<img name="myImg2" id="myImg2"
src="http://www.google.co.u k/intl/en_uk/images/logo.gif">
<img name="myImg3" id="myImg3"
src="http://www.google.co.u k/intl/en_uk/images/logo.gif">
<script>
function doOnload(){
document.getEle mentById('myImg 2').addEventLis tener('mousedow n',function(){r eturn
false;},true);
document.getEle mentById('myImg 3').addEventLis tener('mousedow n',function(){a lert('down');}, true);
}
window.addEvent Listener('load' ,doOnload,true) ;
</script>
Thanks anyone who can help.