Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing iframe to refresh

Status
Not open for further replies.

nineesh

Programmer
Aug 8, 2005
7
IN
how can i forcly refresh the iframe without refreshing the inner pages??

 
Something like:
Code:
document.getElementById('id_of_iframe').href='the_page.html';
Might be what you are after (assuming the iframe has an ID of id_of_iframe and is displaying the page the_page.html.

Hope this does what you want.
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Is it possible when the user clicks on the refresh button in the browser window.
 
Not exactly. Refreshing of the parent window will trigger a refresh of all it's child frames... as well as a refresh of itself. You cannot selectively choose to block the refresh button.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
I have problem with the iframe. When i click the refresh button in any page of the website, it suddenly jumps into the first page. All the pages using the iframe. Can it possible to stop and on clicking refresh the same page where the user clicks should be load??

Thanking you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top