/    Sign up×
Community /Pin to ProfileBookmark

Always on-top popup…

I need to keep two popup windows on top of all other apps. The modal thing doesn’t work, I need it primarily for IE.

I have used this …

body onblur=”this.focus()”

… in both of the popup html files, but both windows fight each other for supremacy that you can’t actually click on anything in the webpages themselves.

Here’s what I mean…

[url]http://homepage.ntlworld.com/a.mcleod4/index.html[/url]

Even using the onblur event handler doesn’t stop the popups from hiding when I click on other apps. Please help!!!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@W8_4meauthorSep 29.2005 — Oh by the way, you need to view the above link in IE.
Copy linkTweet thisAlerts:
@W8_4meauthorSep 30.2005 — I guess I'm asking for a persistent popup script... for work only of course.
Copy linkTweet thisAlerts:
@konithomimoSep 30.2005 — Like you said, you can use:

<body onBlur="self.focus()">

but since you are trying to make it be two poup windows in the same script it wont work. The only thing you cna do is make one window that has both popups in it. Then use that line on the window.

Or you can give one window supremacy. One way is like this:

<body onblur="focusFunction();">

<script language="JavaScript">

var popup2Open = false;

function focusFunction() {

if (!popup2Open) {

self.focus();

}

}

function openPopUp2() {

popup2Open = true;

//popup Stuff

}

</script>
×

Success!

Help @W8_4me 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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