Alex Bird wrote:
Possibly I am searching for the wrong thing, but my googling has been
futile.
A quite pointless statement without telling what keywords you have used.
I want to get the contents of the browser (FF) location bar *before* I
have navigated to that location. location.href / window.location have
not been set at this point.
You can't. This code would run in the sandbox which, literally, prevents
you from spying on the property.
Scenario: I want to be able to paste an address in, and hit a button
to change certain parameters and navigate to the page. I can do this
by popping up a dialogue box and pasting the address in, but that
isn't very clean, and precludes having several modifier bookmarklets.
I don't follow. As you can paste the address and hit a button, you can type
the keyword of the bookmarklet and paste the address as its parameter. You
can have any number of modifier bookmarklets this way. I currently use
about 100 of them.
HTH
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>