/    Sign up×
Community /Pin to ProfileBookmark

Refresh page with JavaScript

Hi guys:

I have a main page with a list of links on it. When someone clicks one of the links it pops up a small window attached to that link. Now the question — how to update the main page after a click on one of the links in the list? I need that to update status of a line in the list from “unviewed” to “viewed on …” and then the date.

Can someone suggest how to do that updating with JavaScript?

PS. The link to open a popup window would be:

[code=html]<a href=”#” onclick=’window.open(page_link,null,”scrollbars=1,toolbar=1,resizable=1,width=740,height=500,left=50,top=50″);return false;’>[/code]

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceJul 06.2006 — From the popup window:

top.opener.top.location.reload(true)
Copy linkTweet thisAlerts:
@dc2000authorJul 06.2006 — OK. But from a parent of a pop-up?
Copy linkTweet thisAlerts:
@felgallJul 06.2006 — top.location.reload(true);
Copy linkTweet thisAlerts:
@dc2000authorJul 07.2006 — Thanks. Tried both.
top.opener.top.location.reload(true)return "Access denied". Next one works fine top.location.reload(true); but it needs a delay because it may reload page faster than a pop-up will be able to load up. Is there any way to sync that?
×

Success!

Help @dc2000 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.19,
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,
)...