homepage Welcome to WebmasterWorld Guest from 54.243.17.133
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Refreshing a page
Refreshing a page
sireesha




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

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

Thanks,
Sireesha

 

dcrombie




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

Something like this?

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

sireesha




msg:1471028
 6:38 am on Jan 31, 2004 (gmt 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

HocusPocus




msg:1471029
 12:44 pm on Jan 31, 2004 (gmt 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




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved