开发者

Window Always on top. How to create such one?

开发者 https://www.devze.com 2023-01-28 01:51 出处:网络
So I try: <html> <head> </head> &l开发者_如何学编程t;body> <script> window.onblur = function() {

So I try:

<html> 
<head>
</head> &l开发者_如何学编程t;body> 
<script>
window.onblur = function() {
   window.focus();
};
</script>
</body> </html> 

With idea in my head for window to always stay on top... but it does not. Why? How to fix this?


You can't make a Javascript popup window always stay on top, because you can't force focus on it from within the script.

And thank goodness for that! This would become the #1 Internet annoyance within weeks.

Related: If The Internet Was A Real Place - Chappelle's Show

0

精彩评论

暂无评论...
验证码 换一张
取 消