获取FireFox下的event

 

/* 获取FF下当前事件对象 */
function getFFEvent(){
	var func = getFFEvent.caller;
	while (func != null) {
		var arg0 = func.arguments[0];
		if (arg0) {
			if ((arg0.constructor == Event || arg0.constructor == MouseEvent) || (typeof (arg0) == "object" && arg0.preventDefault && arg0.stopPropagation)) {
			   // top.JSLogger.log(arg0);
				return arg0;
			}
		}
		func = func.caller;
	}
}
	

你可能感兴趣的:(Firefox的event)