homepage Welcome to WebmasterWorld Guest from 54.166.116.36
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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

10+ Year Member



 
Msg#: 1208 posted 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

10+ Year Member



 
Msg#: 1208 posted 2:01 pm on Jan 30, 2004 (gmt 0)

Something like this?

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

sireesha

10+ Year Member



 
Msg#: 1208 posted 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

10+ Year Member



 
Msg#: 1208 posted 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

10+ Year Member



 
Msg#: 1208 posted 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