By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,148 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

Random Bookmark Bookmarklet

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.