Rella
Rella

Reputation: 66935

Window Always on top. How to create such one?

So I try:

<html> 
<head>
</head> <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?

Upvotes: 0

Views: 1286

Answers (1)

Pekka
Pekka

Reputation: 449385

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

Upvotes: 2

Related Questions