faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 29 people (45%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Can you have a link in a page that has the same effect as the user pressing the Refresh button?

Apr 5th, 2008 19:35
ha mo, Colin Fraser, Tariq Chalabi,


You may want to try 
<script language="JavaScript"><!--
function myrefresh() {
       location.reload(force);
}
 //--></script>
and in the page 
<a href="javascript:myrefresh()">What Text you want here</a>
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com