/    Sign up×
Community /Pin to ProfileBookmark

How to disable parent window from auto refreshing…

Hi all,

In my application I’m using ‘window.open’ method in href links in order to open new windows.

The href link and its associates at the parent page look like that:

href=”#” onclick=”startProcess(‘Some String’,’selectedForm’,’Some String’);return false;” target=”giftWin”>Gift …

function startProcess(processName,inputName,inputValue) {



window.open(sUrl,name,’height=350,width=350,resizable=1,scrollbars=1,status=1,menubar=1,toolbar=1′);

….

}

Right now, when child window closes (by submitting or other ), The parent window auto refreshes automatically.

This behavior (Not controlling parent refresh process) makes me lots of problems, since i need to update some variables on the parent page and submit it (and not refresh/reload) right after the child window closes.

I don’t understand what makes my browser acting like this ? (IE8)

What makes the parent window auto refreshes after its child closes, how can i control this (prevent parent from auto refresh)?

Thank’s for the help.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

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