X
xdevel1999
Hi why if I have a DIV I can raise an onclick event only on the inner
DIVs and not
on the whole area? (Firefox does it)
<div id="submenu" class="style1">
<div id="item" onclick="alert(444)">
<div id="a">
AAAAAAAAAa</div>
<div id="B">
bbbbbbbbbb</div>
</div>
</div>
Here the div is height 100px:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! AAAAA |
! bbbbbb |
! . if I click in this empty but rendered area here
the event is not raised!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Any idea?
Thanks
DIVs and not
on the whole area? (Firefox does it)
<div id="submenu" class="style1">
<div id="item" onclick="alert(444)">
<div id="a">
AAAAAAAAAa</div>
<div id="B">
bbbbbbbbbb</div>
</div>
</div>
Here the div is height 100px:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! AAAAA |
! bbbbbb |
! . if I click in this empty but rendered area here
the event is not raised!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Any idea?
Thanks