/    Sign up×
Community /Pin to ProfileBookmark

reload a frame from a new window

In a similar post I asked how can you reload a frame from a pop-up and close the pop-up.

The solution was :
<form>
<input type=”button” onClick=”opener.parent.mainFrame.location.reload();window.close();” value=”Close and reload”>
</form>

Now I need to do the same thing but from a window opened from a link with “target=blank”.

I have to inform you that in the new window I do some changes so the url changes. The button “Close and reload” appears on the last url.

Thanks

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@pyroJul 16.2003 — I don't think you can do that, because a window opened that way has no relation to the opener.
Copy linkTweet thisAlerts:
@cipiauthorJul 16.2003 — Isn't it possible to do it using the name of the window and not using the opener method?
Copy linkTweet thisAlerts:
@Khalid_AliJul 16.2003 — if you use

window.open() then you can do almost anything you want...else nothing..?
Copy linkTweet thisAlerts:
@cipiauthorJul 16.2003 — Than i will use the window.open with 800X600 resolution and all the other feature to "yes" .

Thanks
×

Success!

Help @cipi 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 5.7,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...