If you use the body onblur you will not get this message. Example:
<body onblur="window.focus()">
However, the window may or may not get the focus depending upon the OS
settings on the client machine. At the very least, the icon in the task bar
will highlight, if the OS will not give the focus to the window. There's
nothing you can do if this setting is set on the client machine.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Wei" <wx***@case.edu> wrote in message
news:us**************@TK2MSFTNGP09.phx.gbl...
I need the current window stay on focus. The user will have to click on
exit button to exit the window.
When I use the following code, I got an error: "Not implemented"
Code:
private void Page_Load(object sender, System.EventArgs e){
Response.Write("<script>window.onblur = window.focus();</script>");
}
Please help
Thanks