Change look of URL in Browser

F

fritz-bayer

Hi,

I would like to change the appearance of the URL, which gets displayed
in the title of the Browser, without the page being reloaded. Sounds
strange.. here an example.

The users arrives at www.example.com and in the URL bar of the browser
he sees:

http://www.example.com

I'm looking for some javascript which would change the URL which gets
displayed in the title to:

http://www.ExAmPlE.com

without the page being reloaded!

Is that possible at all?
 
V

VK

I would like to change the appearance of the URL, which gets displayed
in the title of the Browser, without the page being reloaded.

<body onload="document.title='New title';">
 
F

fritz-bayer

Hi guys, thanks for the replies.

But I actually meant the url in the browser bar. Not the title of the
html document. I'm talking about the URL, which you type into the
browser to get to a webpage.
 
E

Evertjan.

wrote on 06 apr 2006 in comp.lang.javascript:
Hi guys, thanks for the replies.

But I actually meant the url in the browser bar. Not the title of the
html document. I'm talking about the URL, which you type into the
browser to get to a webpage.

Please quote what you are replying to. If you want to post a followup via
groups.google.com, don't use the "Reply" link at the bottom of the article.
Click on "show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
<http://www.safalra.com/special/googlegroupsreply/>

The browser's adress bar [that's what it is called, IMHO]
is not accessable from webpage-javascript,
unless a redirect is executed.

It would be an security risk if it was.
So don't try to mess with it.
 
V

VK

But I actually meant the url in the browser bar. Not the title of the
html document. I'm talking about the URL, which you type into the
browser to get to a webpage.

You must be kidding - or badly joking.
....
document.foobarAddressBar = 'https://www.bankofamerica.com';
....
Please enter your password for funds transfer:
....

Something like this? Strangely enough it is not allowed in any browser
(I keep wondering why?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top