popup window that is always on top (no modal type)

S

SM

I want to build a popup window that is always on top. I'm not looking
for the modal popup window type.

I've already have the code for the popup, it looks like this:

<a href="#" onclick="window.open
('radio.php','radio','statusbar=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,width=250,height=600');
return false;">RADIO</a>

i'm looking for the code to make the popup window always on top.

I've made some research and found this:
<BODY onLoad="self.focus()" onBlur="self.focus()">

But for some reason, it doesn't work as it should. I had to take it
off! It was becoming to annoying.

There has to be a way! Either using simple javascript or a javascript
library or even a simpler solution.

Is this feasable?

Thanks
Marco
 
H

Hamish Campbell

I want to build a popup window that is always on top.
[...]

Is this feasable?

Thanks
Marco

No. This is the sort of horrible UI experience that browser makers
have worked to prevent.
 
S

SM

I want to build a popup window that is always on top.
[...]

Is this feasable?
Thanks
Marco

No. This is the sort of horrible UI experience that browser makers
have worked to prevent.

i can't believe there is nothing! there are times, when you want to
give the user the option to enable or disable the option. Like a link
that when you click on it the popup windows stays on top and vice-
versa...

not even a javascript library like jquery could do that....
 
H

Hamish Campbell

i can't believe there is nothing! there are times, when you want to
give the user the option to enable or disable the option. Like a link
that when you click on it the popup windows stays on top and vice-
versa...

The user already has the option to look at your popup for as long as
they want. You are trying to do the exact opposite.

If there was a way around it, two things would happen:

1. The same people who abused the 'old' way would use the 'new' way to
annoy people.

2. The browser-makers would quickly close the loophole.
not even a javascript library like jquery could do that....

jQuery is written in JavaScript. Unless we're breaking some sort of
fundamental law of mathematics, then yeah, jQuery isn't going to solve
your problem.
 
T

The Natural Philosopher

SM said:
I want to build a popup window that is always on top. [...]

Is this feasable?
Thanks
Marco
No. This is the sort of horrible UI experience that browser makers
have worked to prevent.

i can't believe there is nothing! there are times, when you want to
give the user the option to enable or disable the option. Like a link
that when you click on it the popup windows stays on top and vice-
versa...

not even a javascript library like jquery could do that....

well simply dont use popups

If I want an 'on top' box, I create a visible <div> and work in that.
If you are clever, it can look juts like a new window ;-)
 
S

SM

eval( aspects.length >= ( browsers.length * OSs.length )); ->
true ... ;-)

In my case, i´m using the popup window to popup a small window (300px
by 300px) to view streaming video while the user is surfing the web
page, writing in the forum, (vBulletin) etc... I've tried with modal
popup, but i believe that modal boxes disappear when the page is
refresh. That's why i want it to give the option to the user to pin or
unpinned the window. I do unsderstand the abuse that could come up if
this is enable...

Anyways, In this case, the user will have to cascade both windows...

Ok thanks again for all your help.
Marco
 
M

Michael J. Ryan

I want to build a popup window that is always on top. I'm not looking
for the modal popup window type.

yes, you are... what you are not looking for is an embedded (in the document)
modal.
I've already have the code for the popup, it looks like this:

<a href="#" onclick="window.open
('radio.php','radio','statusbar=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,width=250,height=600');
return false;">RADIO</a>

i'm looking for the code to make the popup window always on top.

I've made some research and found this:
<BODY onLoad="self.focus()" onBlur="self.focus()">

But for some reason, it doesn't work as it should. I had to take it
off! It was becoming to annoying.

There has to be a way! Either using simple javascript or a javascript
library or even a simpler solution.

Is this feasable?

It won't keep focus away from other navigation/programs in your OS, but you
would need to register a focus event for your opener window...

if (_modal && !_modal.closed) _modal.focus();

additionally, you may want to mask your content in the parent window.
 
S

SM

yes, you are... what you are not looking for is an embedded (in the document)
modal.










It won't keep focus away from other navigation/programs in your OS, but you
would need to register a focus event for your opener window...

if (_modal && !_modal.closed) _modal.focus();

additionally, you may want to mask your content in the parent window.

Michael,
Do you know of any website that explains or demos what your saying. It
could be what i'm looking for. ..
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top