469,290 Members | 1,887 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

Random Bookmark Bookmarklet

I found this bookmarklet that will go to a random link on the currently open page:

javascript:void(location.href=document.links[Math.round((document.links.length-1)*Math.random())])

Could this be changed to go to a random link from the bookmarks file in
Mozilla-derived browsers? How would it be done?

--
----------------------------------------------------------------------------
Kim Scarborough http://www.unknown.nu/kim/
----------------------------------------------------------------------------
Now listening to: Fleetwood Mac - "Man of the World"
----------------------------------------------------------------------------
Jul 23 '05 #1
1 1745
Ivo
"Kim Scarborough" wrote
I found this bookmarklet that will go to a random link on the currently open page:
javascript:void(location.href=document.links[Math.round((document.links.leng
th-1)*Math.random())])
Could this be changed to go to a random link from the bookmarks file in
Mozilla-derived browsers? How would it be done?

I had a bookmarklet like that on a page full of bookmarklets. That was fun.
How would javascript read the bookmarks file?
Ivo
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Martin | last post: by
2 posts views Thread by Gaikokujin Kyofusho | last post: by
6 posts views Thread by Chris | last post: by
4 posts views Thread by gwtc | last post: by
25 posts views Thread by bweaverusenet | last post: by
7 posts views Thread by Amir Michail | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.