Here’s my script:
<form action='' method='' onsubmit='refreshpage();'>
<input name='refresh' type="image" SRC="images/Next-Page-Button.gif" HEIGHT="60" WIDTH="173" BORDER="0" value='Refresh'>
</form>
I want it when the user clicks the “next page” button a loading or please wait will pop up because it takes over 30 sec for the next page and I want the members to know the site is working, but also make the popup go away after the page is loaded.
Also if you want to see the button in action my site is http://www.socialmedianetworkexchange.com and it’s when you click the “earn facebook likes” button.
You could show an element over the page when they click it, and then it will go away by itself upon navigating to the other page.
JavaScript:
HTML/CSS:
You can change the loading message to whatever you wish for it to say, of course.
Edit:
Just add the
onclickevent to the<li>like:Make sure you have the other HTML, CSS and JavaScript above this for the function to work.