larry-java學習交流空間
hibernate、spring、webwork、struts、Portal、ajax技術交流
BlogJava
::
首頁
::
新隨筆
::
聯系
::
聚合
::
管理
posts - 40, comments - 4, trackbacks - 0
<
2007年12月
>
日
一
二
三
四
五
六
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(2)
給我留言
查看公開留言
查看私人留言
隨筆檔案
2008年11月 (3)
2008年9月 (1)
2008年5月 (1)
2008年2月 (1)
2008年1月 (1)
2007年12月 (2)
2007年9月 (2)
2007年8月 (1)
2007年7月 (2)
2007年5月 (5)
2007年4月 (2)
2007年2月 (3)
2007年1月 (2)
2006年11月 (4)
2006年10月 (8)
2006年9月 (1)
2006年7月 (1)
文章分類
數據庫優化(5)
文章檔案
2007年8月 (1)
2007年7月 (2)
2007年6月 (2)
2007年5月 (8)
2007年4月 (2)
2007年2月 (1)
2006年11月 (6)
2006年8月 (1)
2006年6月 (6)
連結
http://www.blogcn.info/user1/pure2008/
http://www.blogcn.info/user1/pure2008/
http://www.aygfsteel.com/hiswing/
http://www.aygfsteel.com/hiswing/
中國java開發網
中國java開發網
中國java技術網高級論壇首頁
中國java開發網
學習筆記
學習筆記
搜索
最新評論
1.?re: 如何判斷一個網頁是刷新還是關閉的方法
頁面關閉時也會執行onbeforeunload和onunload
--danagao
2.?re: Eclicpse3.1.1下配置SWT,打包發布SWT程序,轉EXE一條龍過程記錄[轉載][未登錄]
爽你媽阿爽
--x
3.?re: 隱藏HTML網頁的源代碼
這樣就把源代碼給清除了,當再次點擊刷新時,就什么也沒有了。可不可以解決這樣的問題呢?
--王虹
4.?re: Tomcat設置404錯誤頁無法正確定向
<%
response.setStatus(200); // 200 = HttpServletResponse.SC_OK
%>
好!
--fgjun
閱讀排行榜
1.?Hibernate sum 函數的使用(4021)
2.?dos下取系統時間(1904)
3.?Eclicpse3.1.1下配置SWT,打包發布SWT程序,轉EXE一條龍過程記錄[轉載](1618)
4.?Apache + Tomcat + Linux 集群和均衡負載 (Session 同步復制) 配置實踐指南(1298)
5.?手機與電話的正則表達式 驗證有效日期時間的正則表達式(已解決閏二月) (1021)
評論排行榜
1.?Tomcat設置404錯誤頁無法正確定向(1)
2.?Eclicpse3.1.1下配置SWT,打包發布SWT程序,轉EXE一條龍過程記錄[轉載](1)
3.?J2EE開發之常用開源項目介紹--(學習)(0)
4.?開發RCP程序的插件集(0)
5.?dos下取系統時間(0)
關閉瀏覽器窗口時事件
一
<
script language
=
"
javascript
"
>
g_blnCheckUnload
=
true
;
function
RunOnBeforeUnload()
{
if
(g_blnCheckUnload)
{window.event.returnValue
=
'You will lose any unsaved content';
}
}
</
script
>
<
body onbeforeunload
=
"
RunOnBeforeUnload()
"
>
</
body
>
二、
<
script
>
function
window.onbeforeunload()
{
if
(event.clientX
>
document.body.clientWidth
&&
event.clientY
<
0
||
event.altKey)
{
window.event.returnValue
=
"
確定上傳完成嗎?
"
;
}
else
{
alert(
"
你在刷新
"
);
}
}
</
script
>
posted on 2007-12-11 13:35
larryjava
閱讀(314)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
Powered by:
BlogJava
Copyright ©2025 larryjava
主站蜘蛛池模板:
平江县
|
建德市
|
桐梓县
|
河南省
|
和平区
|
枝江市
|
伊川县
|
南召县
|
烟台市
|
金寨县
|
高淳县
|
阿鲁科尔沁旗
|
泾阳县
|
乐安县
|
金山区
|
勐海县
|
商河县
|
建水县
|
南城县
|
云南省
|
长春市
|
邯郸县
|
长葛市
|
玛沁县
|
南通市
|
定襄县
|
黑龙江省
|
波密县
|
马边
|
晋州市
|
南通市
|
双流县
|
双桥区
|
屏东县
|
中西区
|
黑河市
|
双城市
|
五峰
|
武汉市
|
苏州市
|
土默特右旗
|