hey all,
i have this demo code:
<script>
tog=0;
function setvalue(id){
if(id){ tog=1
}else{
tog=0;
}
}
function cl(){
if(!tog){
alert("button clicked")
}else{
alert("LINK clicked")
}
}
</script>
<button value="ee" onclick="cl()">
I AM A BUTTON <table cellspacing="0" cellpadding="3" border="0"
height="0" width="0" style="border: 1px;">
<tr>
<td>
<div align="center"> <a href="#" id="test" style=""
class="test" onmouseover=";s etvalue(1)"
onmouseout=";se tvalue(0)">link </a></div></td></tr></table>
</button>
in a MSI browser it works.. but for mozilla etc not!?
anybody a solution?
the <button> element filters all the onclick&onmouse down events in a link :(
cheers,
d
i have this demo code:
<script>
tog=0;
function setvalue(id){
if(id){ tog=1
}else{
tog=0;
}
}
function cl(){
if(!tog){
alert("button clicked")
}else{
alert("LINK clicked")
}
}
</script>
<button value="ee" onclick="cl()">
I AM A BUTTON <table cellspacing="0" cellpadding="3" border="0"
height="0" width="0" style="border: 1px;">
<tr>
<td>
<div align="center"> <a href="#" id="test" style=""
class="test" onmouseover=";s etvalue(1)"
onmouseout=";se tvalue(0)">link </a></div></td></tr></table>
</button>
in a MSI browser it works.. but for mozilla etc not!?
anybody a solution?
the <button> element filters all the onclick&onmouse down events in a link :(
cheers,
d
Comment