A project I imported into my Eclipse IDE has an HTML file with the following near the top of the file:
<div class="header_logo"><a href="./" onclick= javascript: return changePage(0, ''); class="logo"><img src="images/logo-big.jpg" alt="Noridian" width="169" height="80" /></a></div>
The Eclipse IDE calls out the onclick as being in error: Open quote is expected for attribute "onclick" associated with an element type "a".
May I assume that the onclick should read:
<div class="header_logo"><a href="./" onclick= "javascript: return changePage(0, '');" class="logo"><img src="images/logo-big.jpg" alt="Noridian" width="169" height="80" /></a></div>
I am definitely not a Javascript expert but from what I have read, the statement following the onclick= should be surrounded with open quotes.
javascript:. Your first line shows no quotes and your second one does.... so do you actually have quotes?onclick="return changePage(0, '');"returndoesn't make sense here, does it?