Profile
Achievement
wizard04's Recent SnippetsTagged javascript
- All /
When there's a URL on a page that's not a link, just highlight it and click this bookmarklet. The URL will open in a new window.
If there are multiple selections (e.g., if you've selected something in each of two frames on the page), they will eac...
1
809
posted 16 years ago by wizard04
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
589
posted 16 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
911
posted 16 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
642
posted 16 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
770
posted 16 years ago by wizard04