Profile
Achievement
wizard04's Recent JavaScript Snippets
- All /
Select some text, click the bookmarklet, and the definition(s) will open up in [Ninjawords](http://www.ninjawords.com).
[Ninjawords](javascript:(function(){function%20t(f){try{if(f.getSelection)return%20f.getSelection().toString(&#...
0
455
posted 15 years ago by wizard04
`Events.add(element, type, handler)` adds a handler to an element
`Events.remove(element, type, handler)` removes a handler from an element
`Events.getTarget(event)` or `Events.getOrigin(event)` returns the element from which the event originat...
1
719
posted 15 years ago by wizard04
Functions to use the clipboard.
Requires a Flash file for non-IE browsers: see [http://javascript.internet.com/forms/clipboard-copy.html](http://javascript.internet.com/forms/clipboard-copy.html)
Remember to set `config.Clipboard.pathToFlash` a...
1
496
posted 15 years ago by wizard04
Useful functions to get around browser incompatibilities when working with stylesheets.
If you find any errors, please leave a comment.
0
619
posted 15 years ago by wizard04