I have this bookmarklet:
javascript:void(window.open(document.links[Math.floor(Math.random()*document.links.length)].href,'_blank'))
It outputs random link from a document full of links.
I want to make it randomisingly output from only some particular links out of many links on a page.
What should I do?
In Firefox, to get all links within selected text:
Here is a tip for IE: http://pclancey.com/tutorial/selectsrc/