Welcome to WebmasterWorld Guest from 50.19.34.234

Forum Moderators: open

Message Too Old, No Replies

Refreshing a page

Refreshing a page

     

sireesha

1:57 pm on Jan 30, 2004 (gmt 0)

10+ Year Member



Hi,
Can we refresh a page on click of a link... If yes, plz post the code..

Thanks,
Sireesha

dcrombie

2:01 pm on Jan 30, 2004 (gmt 0)

10+ Year Member



Something like this?

<A href="JavaScript:history.go(0);">refresh page</A>

sireesha

6:38 am on Jan 31, 2004 (gmt 0)

10+ Year Member



Thanks dcrombie,
We can have one more way of doin this shown as below..
window.location="refreshPage.html";
Where 'refreshPage.html' is the current page u want to refresh...

Sireesha

HocusPocus

12:44 pm on Jan 31, 2004 (gmt 0)

10+ Year Member



or
location.reload(true)

The 'true', specifies whether the doc should be reloaded, even if the server reports that it hasn't been modified since it was last loaded. Ie it bypasses the cache

dcrombie

1:38 pm on Jan 31, 2004 (gmt 0)

10+ Year Member



Instead of "window.location" you should use "self.location.href".
 

Featured Threads

Hot Threads This Week

Hot Threads This Month