Hijacking onClick Methods - TiddlyWikiGuides

#4 of 8 marked pages on the trail TiddlyWiki by fridemar
http://tiddlywikiguides.org/index.php?title=Hijacking_onClick_Methods
fridemar's comments
var btn = document.getElementById("mybtn");
btn.old_onclick = btn.onclick;
btn.onclick = function() {
this.old_onclick.apply(this,arguments);
alert("goodbye");
}
Other comments
There are no comments on this mark.
Similar Marks
Changing of options of list box based on OnClick event of period button (by omweg)
Picker (by nDeza)
Dynamic Drive DHTML Script- Tabbed Document Viewer (by imenace)
Add and Remove HTML elements dynamically with Javascript (by floweringmind)
A Mac OS X-style Dock In JavaScript (by floweringmind)
Check file size with Javascript - Javascript / DHTML / Ajax Forum (by Illuminaty)
JAVASCRIPT MOTION TWEEN (by floweringmind)
Ajax Examples with xajax + Code Igniter (by sidisinsane)
Autotags for this Mark
alert
apply
arguments
btn
document
function
getelementbyid
goodbye
hijacking
methods
mybtn
old
onclick
tiddlywikiguides
var
Marks in this trail
TiddlyWiki
Table formatting
HelloWorldMacro
Hijacking onClick Methods - TiddlyWikiGuides
VisualTW - Wysiwyg, tabs, fields editor and encryption plugins
Paulo Soares - TiddlyWiki 2.3.0 addons
CheckBox: TiddlyTools... Small Tools for Big Ideas™
Dev:Core Code Overview - TiddlyWiki.org
Links
Go to this page
Trail summary
fridemar's trails
Trailfire Guide | See More Trails | About Us | Privacy Policy | Terms of Use | End User License Agreement | Report an Abuse | Feedback | Contact Us
©2006-2007 Trailfire Inc. All rights reserved.
Join Trailfire
Sign In...
Username:
Password:
Sign In
Forgot Password?
Learn More
Download
My Stuff
Explore