By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,445 Members | 3,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,445 IT Pros & Developers. It's quick & easy.

Reload a frame

P: 18
i have created a main page which contains a frame on the center .
the frame has a link which opens a new separate window.
i am trying to create a function that will make it possible for me to click
a button to close the new separate window and then reload the frame

window.reload not seem to work cause i cant specify the page to reload
Jan 8 '08 #1
Share this Question
Share on Google+
3 Replies


gits
Expert Mod 5K+
P: 5,333
hi ...

please post the code you have so far ... where is the 'close'-function called? in you new opened window or the parent?

kind regards
Jan 8 '08 #2

P: 18
hi ...

please post the code you have so far ... where is the 'close'-function called? in you new opened window or the parent?

kind regards


the 'close' function is called in the new window. cause i want the new window to close
i am calling the reload function in the new window but i want the parent window to refresh upon clicking a button in the new window
Jan 9 '08 #3

gits
Expert Mod 5K+
P: 5,333
since you didn't post your code i'll give you an example for your purpose (how to refresh a frame in the parent window):

Expand|Select|Wrap|Line Numbers
  1. var target_win = opener.frames.your_frame_name;
  2. target_win.location.href = target_win.location.href;
you may even use the reload- or refresh-methods.

kind regards
Jan 10 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.