首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 一个jQuery插件处理表单输入的变化(S)切换和关闭window.onbeforeunload事件。

一个jQuery插件处理表单输入的变化(S)切换和关闭window.onbeforeunload事件。

资 源 简 介

Copyright (c) 2009 Law Ding Yong Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php This is a jQuery Plugin that handles onchange of form input(s) to toggle on and off of window.onbeforeunload event. Form input(s) includes all type of text, textarea, password, radio, checkbox and file. Form input(s) types of submit and button will trigger off navigation confirmation event. Users are able to configure the custom return message by onbeforeunload event. Browser Compatibility : IE 6.0, 7.0, 8.0; Firefox 2.0+; Safari 3+; Opera 9+; Chrome 1+; Use Example: $("#YourForm").FormNavigate("YourMessage"); Version changes: Version 1.1 (thanks to kurund) Corrected bug that do not handle Back button navigation Corrected textarea do not prompt confirmation in MAC.
VIP VIP
0.170384s