Next image without refreshing the whole page (on click)
Hi all am trying to "on click" go to the next image (I'll post code it will be easyer to understand what am trying to do)
<form id="selector">
<select onchange="i开发者_开发知识库nitChapSelector();"></select>
<select onchange="initPageSelector();"></select>
<select onchange="initDisplay();"></select>
</select>
</form>
<a href="#" onclick="moveToNextPage(); return false;"><img id="display" src="js/VKmanga/spinner.gif"></a>
but the only way I know is href="#"
but that just refreshes the whole page
Is there any other ways I can make this work?
Am new to html/php so please forgive me if this above code is all wrong Thanks
Also am working in a forum template if that means anything
Uhm, href="#" should not refresh the whole page. Are you sure there aren't errors in moveToNextPage()? You could also try javascript:void(0) in the href="...": it should do absolutely nothing.
精彩评论