Can the href be executed before the onclick event in an anchor tag?
frameDoc.body.innerHTML+='<div style="margin-left:10;"><li class="highlight"><a href="'+tmp1+'" onclick="highlightSearch(this);">'+searched_headings[l]+'</a></li></div>';
1. First initiate the link 2. Then trigger the onclick function.
Your suggestions are welcome...