Reputation: 66935
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
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