I am looking for a way to make a button to refresh the contents of a page. I have tons of articles on my site and have it set to show 10 at a time. It would be nice to have a button that says click here for 10 more articles and have it just refresh the page. Or should I just make a button with a link back to the same page? THanks
I guess the articles on the pages are randomised? You could do this: <form action="?"><input type="submit" value="Refresh!"></form> And that'd load the page again.
Put this in Your Page which you want to automatically refresh <html><head> <meta http-equiv="refresh" content="Refresh Time Here (In Seconds); URL=http://YOUR URL"> </head> </html>
maybe it will be suitable to use link on the main page (or page u want to refresh). But u need not to use caching in metatags.
this is another way to do it adding style to your button, instead of plain gray: <button style="background:red: color:white;" type="submit" value="Refresh!">Refresh!</button> Code (markup): the above produces a red button with white letters that you can change for any color at your convenience. Otherwise you can also use javascript this way: <a href="javascript: window.location.reload()">refresh page</a> Code (markup): in both cases you can add an image instead of text.