I have a list of rollover blocks. The block itself is a link to one page. Inside the block are two other links, text, to different pages. When you click on one of these links, both that link and the block link execute, causing two windows to load. How can I make it so when clicking on the text the block link does not execute?
Thanks!
echo \"<div class=\'feedcontent\'
onclick=\'show_thumbnail($pageid,$revid, this)\'
id=\'newsitem-$pageid-$revid\'>\";
echo \" <a href=\'javascript:void;\'
onclick=\'load_wikitrust(\\\"$wktrust_url\\\");\'>edited</a><br>\";
$aname=substr($wkarticle, 0, 27);
echo \" <a href=\'javascript:void;\'
onclick=\'window.open(\\\"$wkarticle_url\\\")\'>$aname</a>\";
echo \" on <span class=\'timeline_timestamp\'>$timestamp</span>\";
echo \"</div>
So, for example when you click on the article name ($aname) both the onclick link showing the thumbnail as well as the onclick link to open the window with the article load. This is just a snippet of the code inside the block which is defined by the class feedcontent.





Rating:
The post javascript – Links inside of display block link issue, both links activate appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-links-inside-of-display-block-link-issue-both-links-activate.html
No comments:
Post a Comment