473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Is it possible to get the text from browser location bar *before*navigation (e.g. not location.href)

Hi,
Possibly I am searching for the wrong thing, but my googling has been
futile.

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.

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.

This could help my debugging speed immensely!

Cheers
Jun 27 '08 #1
3 980
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>
Jun 27 '08 #2
On May 8, 6:35*pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
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.
You're weird.

Thanks for answering the question though,

A.
Jun 27 '08 #3
Alex Bird wrote:
[...] Thomas 'PointedEars' Lahn [...] wrote:
>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.

You're weird.
In this place, you are. See http://catb.org/~esr/faqs/smart-questions.html
Thanks for answering the question though,
You're welcome.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gordon Mohr | last post by:
I'd like to set up a bit of javascript to be run when other javascript loads a new page via something like { top.window.location.href = newLocation }, and have access to the new value. (For...
1
by: polaris431 | last post by:
I would like to obtain encypted data over a network in real-time. The nature of the data and process is as follows... A physical hardware device is located at some remote location. When the...
5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar?...
7
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
I want to change the font color and weight at a specific position in the text. I am not sure where or what I need to do. It will be at position 155/156 from the left on each line. Here is the...
1
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar?...
2
by: mahmoodn | last post by:
Is there any text browser that support javascript? seems that links2 no longer support that feature.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.