How to anchor paragraph in other HTML pages and in the same time highlighted the area where the pointed paragraph is located when click the the button in the current page?
I made this simple code in JavaScript just doing the anchor thing
Current page:
<html>
<form>
<input type=button value="open in new tab" onClick="goToURL2()">
</form>
<body>
<script type="text/javascript">
<!--
function goToURL2() { window.open( "explanations.html#footwell"); }
// -->
</script>
</body>
</html>
New page:
<html>
<p><a name="footwell">
O, say can you see by the dawn's early light?
</a></p>
</html>
I think that "highlighted text" jQuery will be the best method but can't figure out how to do it with more than one html page.