Welcome to WebmasterWorld Guest from 54.166.201.210

Forum Moderators: open

Message Too Old, No Replies

Refreshing a page

Refreshing a page

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

New User

10+ Year Member

joined:Dec 19, 2003
posts:19
votes: 0


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)

Inactive Member
Account Expired

 
 


Something like this?

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

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

New User

10+ Year Member

joined:Dec 19, 2003
posts:19
votes: 0


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

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

Junior Member

10+ Year Member

joined:Dec 27, 2002
posts:125
votes: 0


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)

Inactive Member
Account Expired

 
 


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members