/    Sign up×
Community /Pin to ProfileBookmark

Window.Opener

I have a frameset. topFrame and mainFram. In the mainFrame I use the window.open() command. I wish to refresh the mainFrame via a link in the Pop Up Window.

I can do this no worries if I was to NOT use or trigger the pop up from a normal window (window.opener.location.href =http://www.mysite.com/new.htm), but this doeas not work for frames?

Is this true? If so what would the code be to refrsh the mainFrame?

Please Help

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@requestcodeAug 12.2003 — Try opener.document.mainFrame.location.href="http://www.mysite.com/new.htm"

You have to specify the frame name that the page is in.
×

Success!

Help @darenh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...