惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
J
Java Code Geeks
Jina AI
Jina AI
罗磊的独立博客
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
D
DataBreaches.Net
博客园 - 叶小钗
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
B
Blog
V
Visual Studio Blog
雷峰网
雷峰网
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

博客园 - 本能

212 用户自定义函数 我的ASPX写作流程 缘聚公司集资总动员 DataGrid到底有多少猫腻?! 紧急事务 YUANJV运作规律 类和用户控件 模板 Tricks in my Life (诡异人生) ASPX Tricks (诡异) 常用代码片段 ASP程序员如何转向ASPX? 公司工程守则 总是感觉这个ASPX不怎么样哦。。。 圣地天使 当体即空 My Boss 当Response,Request,Cookie混在一起的时候。
如何使一个窗口强制激活在最前端并且可以填写表单?
本能 · 2005-06-16 · via 博客园 - 本能

Q1398 How do I keep a pop-up window forced always active and in front, yet allow users to enter values in form fields?
Submitted by Ben Crosson:

There seem to be 5 or 6 entries in this FAQ which imply that this isn't possible. They simply suggest putting onBlur="self.focus()" in the body tag. However, this locks users out from entering information into form fields. It is possible to get around this though. Simply put the follwing 2 functions in the header of your page, and then in the body tag, as well as in the tag of every form field, put onBlur="blurred()" onFocus="focused()". This will solve this often complained about problem.

<script language="JavaScript">
var timer = '';
function blurred() {
    timer = setTimeout('self.focus()',1);
}

function focused() {
    if (timer != '')
        clearTimeout(timer);
}
</script>

摘自:
http://www.irt.org/script/1398.htm