I'm building a JS bookmarklet which allow user to capture URL that has selected in their browser and sends it off to a web app.....

Instead of capture the URL from the navigation bar i can capture the url selected on a website?

Code:
javascript:var%20e=document.createElement('script');e.setAttribute('language','javascript');e.setAttribute('src','https://server/bookmarlet/load.js?url='+encodeURIComponent(location.href));document.body.appendChild(e);void(0);