Hi guys, hope you can help me, this is tying my brain in knots.
I have a <DIV> element which calls a function using onclick. However, the DIV also contains links, which I want to not call the function when clicked on.
<DIV onClick="Call the function">
- Content -
<A href="URL" onclick="Don't call the function"></A>
- Content -
</DIV>
Also, these links already have onClick events assigned to them.
This is one way I can think of. The other way (which I'm not sure if it'll work) is that it could call the function, but if the function was called by the A tag, then it just returns.
Any advice or comments here would be gratefully accepted.
Thanks
Phil
I have a <DIV> element which calls a function using onclick. However, the DIV also contains links, which I want to not call the function when clicked on.
<DIV onClick="Call the function">
- Content -
<A href="URL" onclick="Don't call the function"></A>
- Content -
</DIV>
Also, these links already have onClick events assigned to them.
This is one way I can think of. The other way (which I'm not sure if it'll work) is that it could call the function, but if the function was called by the A tag, then it just returns.
Any advice or comments here would be gratefully accepted.
Thanks
Phil