By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,071 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,071 IT Pros & Developers. It's quick & easy.

HTML Window Focus alert

P: n/a
Hi All,

I have a specific requirement, please help me out.
I have a web site where multiple html pages are opened at a time &
messages are received or those pages are refreshed automatically using
meta-tag.

what I want is whenever that page is refreshed, the particular html
window should notify user (as user may have opened other html window),
now notification could be by setting focus to that html window which
is refreshed, but then this will distract & frustate the user as he
was referring other html window. What I would like to do is make that
window blink or some notification like yahoo or msn mail received. But
I want this kind of feature in HTML/Javascript.
I m sure somebody would have definately tried this out & succeeded....
Please reply me.....

Regards
Paresh Shah
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Paresh Shah" <pa*********@yahoo.com> wrote in message
news:d5**************************@posting.google.c om...
Hi All,

I have a specific requirement, please help me out.
I have a web site where multiple html pages are opened at a time &
messages are received or those pages are refreshed automatically using
meta-tag.

what I want is whenever that page is refreshed, the particular html
window should notify user (as user may have opened other html window),
now notification could be by setting focus to that html window which
is refreshed, but then this will distract & frustate the user as he
was referring other html window. What I would like to do is make that
window blink or some notification like yahoo or msn mail received. But
I want this kind of feature in HTML/Javascript.
I m sure somebody would have definately tried this out & succeeded....
Please reply me.....

Regards
Paresh Shah


Perhaps you could adapt the following.

The title to "blink" (sort of) even in the Task Bar.

Test as-is; watch for word-wrap.

<html>
<head>
<title>Hello World</title>
<script type="text/javascript">
var step = 0;
var pref = new Array("--- ",">> ");
var titl = document.title;
function titles() {
document.title = pref[step++ % 2] + titl;
setTimeout("titles()",400);
}
</script>
</head>
<body onload="titles()">
</body>
</html>
Jul 23 '05 #2

P: n/a

Thanks friend....
but this doesn't attrack the user who is currently in different
page.....whereas real blinking would be a better option...

has anyone done such kind of work....i believe many of you would have
done. Please let me also know how????
Paresh


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #3

P: n/a
"Paresh Shah" <pa*********@yahoo.com> wrote in message
news:41**********************@news.newsgroups.ws.. .

Thanks friend....
but this doesn't attrack the user who is currently in different
page.....whereas real blinking would be a better option...

has anyone done such kind of work....i believe many of you would have
done. Please let me also know how????
Paresh


[snip]

You originally asked "What I would like to do is make that window blink
....".

A user could resize/maximize a window thus hiding all other windows that you
would have blink.

The (sort of) blinking task bar gets around this and is less intrusive.

Perhaps someone else will post a solution of what you say you want.
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.