I hope someone can help me with this problem. I can manage to find JavaScript to make a window stay on top but not on the bottom. Is it possible to have a browser window remain the bottom window no matter what? Any help is appreciated. Thank you.
Printable View
I hope someone can help me with this problem. I can manage to find JavaScript to make a window stay on top but not on the bottom. Is it possible to have a browser window remain the bottom window no matter what? Any help is appreciated. Thank you.
Your question isn't very easy to understand. What exactly do you mean by "make a window stay on top but not on the bottom"?
Do you mean you want the actual window to be fixed in a given position? If so, this is not possible in JavaScript and requires some programming in the Win32 API, since it involves manipulating the local machine.
If you mean you want the window to "stay at the top", as in make the window un-scrollable, this is possible with JavaScript by simply using:
Edit it may also be:Code:window.addEventListener("scroll", function(){return false;}, false);
Please be more specific.Code:window.addEventListener("scroll", function(event){event.stopPropagation();}, false);
Hello. Sorry about that. I need a website to remain in the bottom window always. Once a button is clicked a pop up window is opened and I do not want the pop up window to go behind the parent window. I do not control the content in the pop up window so I cannot add script to it to make it stay on top.
Is there a JavaScript that can do that, or something I can add to the HTML body tag possibly?
No you can't force a window to stay above or below another window.