/    Sign up×
Community /Pin to ProfileBookmark

javascript: modal pop-up window that close when the page change

hi

i want to create a modal window that contains some message, and will be automatically closed when the parent window’s page change

ie I have a main window. I want to call another window from the main window. This second window should be modal. THe main window is doing some processing and after the processing has finished it will automatically reload itself to another page. The second modal window should close itself when the main window’s page changes.

how do i do it?

any help is greatly appreciated. thanks

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guySep 05.2005 — why post the same question twice... smart one arent we
Copy linkTweet thisAlerts:
@iminauthorSep 06.2005 — it's not the same question..

this one i'm asking on creating a [U]modal pop-up[/U] window instead of normal pop-up window..

any suggestion?
Copy linkTweet thisAlerts:
@bathurst_guySep 06.2005 — whats a modal pop-up window and how does it differ from a normal pop-up window?
Copy linkTweet thisAlerts:
@iminauthorSep 06.2005 — whats a modal pop-up window and how does it differ from a normal pop-up window?[/QUOTE]

a modal pop-up window is, when called, users won't be able to interact with the calling window until the modal pop-up window is closed.

normal pop-up window enables users to interact with any of the window freely.

Just like clicking on file>print in microsoft word.. where u won't be able to edit the word document until u have closed the print window. The print window is an example of modal window.

Correct me if i'm wrong.
Copy linkTweet thisAlerts:
@felgallSep 06.2005 — Each browser provides different support regarding modal popups.

IE has a proprietary call to open a modal window that is a proper modal window.

Mozilla/Firefox/Netscape add modal=yes to the normal window.open to force the new window to stay in front of the opener (but not to make it really modal).

Opera doesn't support modal windows.

To make a window close when someone selects a link on the page just add onclick="self.close()" to each link on the page.
×

Success!

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