Difference between revisions of "User:Trias/common.js"
From SpiralKnights
<
User:Trias
Jump to:
navigation
,
search
Revision as of 09:31, 24 August 2011
(
view source
)
Trias
(
Talk
|
contribs
)
← Older edit
Latest revision as of 09:43, 24 August 2011
(
view source
)
Trias
(
Talk
|
contribs
)
(clear)
Line 1:
Line 1:
−
window.killEvt = function( evt ) {
+
−
window.alert("event should cancel");
+
−
evt = evt || window.event || window.Event; // W3C, IE, Netscape
+
−
if ( typeof ( evt.preventDefault ) != 'undefined' ) {
+
−
evt.preventDefault(); // Don't follow the link
+
−
evt.stopPropagation();
+
−
} else {
+
−
evt.cancelBubble = true; // IE
+
−
}
+
−
return false; // Don't follow the link (IE)
+
−
}
+
Latest revision as of 09:43, 24 August 2011
Views
User page
Discussion
View source
History
Personal tools
Log in
Navigation
Main page
Recent changes
Random page
Help
Search
Tools
What links here
Related changes
User contributions
Logs
Special pages
Printable version
Permanent link