Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js how to have an onclick inside of another onClick

<p onClick={(e)=>{
	if (!e) e = window.event;
    e.cancelBubble = true;
    if (e.stopPropagation) e.stopPropagation();
}}>example</p>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #onclick #onClick
ADD COMMENT
Topic
Name
7+4 =