摘要:
在各种浏览器中存在三种事件模型:原始事件模型( original event model),DOM2事件模型,IE事件模型.其中原始的事件模型被所有浏览器所支持,而DOM2中所定义的事件模型目前被除了IE以外的所有主流浏览器支持. 1.原始事件模型 其事件类型:分为"输入事件(如onclicki)"和"语义事件(如onsubmit)" 事件程序的注册可... 阅读全文
摘要:
<div id="external_links1"> <a href="http://www.google.com" onclick="return confirm('You are going to visit: ' + this.href);">1</a> <a href="#4&q... 阅读全文
摘要:
js不能跨域访问, var request= new XMLHttpRequest(); request.open("Post", "www.google.cn", true);这个语句会报错的。 Http请求的状态。0:未初始化(就是还没调用open()); ... 阅读全文