Connecting Tech Pros Worldwide Forums | Help | Site Map

Change look of URL in Browser

fritz-bayer@web.de
Guest
 
Posts: n/a
#1: Apr 6 '06
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?

VK
Guest
 
Posts: n/a
#2: Apr 6 '06

re: Change look of URL in Browser



fritz-bayer@web.de wrote:[color=blue]
> I would like to change the appearance of the URL, which gets displayed
> in the title of the Browser, without the page being reloaded.[/color]

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

Evertjan.
Guest
 
Posts: n/a
#3: Apr 6 '06

re: Change look of URL in Browser


VK wrote on 06 apr 2006 in comp.lang.javascript:[color=blue]
> fritz-bayer@web.de wrote:[color=green]
>> I would like to change the appearance of the URL, which gets displayed
>> in the title of the Browser, without the page being reloaded.[/color]
>
> <body onload="document.title='New title';">[/color]

Why so difficult? try:

<title>New title</title>


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
fritz-bayer@web.de
Guest
 
Posts: n/a
#4: Apr 6 '06

re: Change look of URL in Browser


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.

Evertjan.
Guest
 
Posts: n/a
#5: Apr 6 '06

re: Change look of URL in Browser


wrote on 06 apr 2006 in comp.lang.javascript:
[color=blue]
> 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.
>[/color]

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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
VK
Guest
 
Posts: n/a
#6: Apr 6 '06

re: Change look of URL in Browser



fritz-bayer@web.de wrote:[color=blue]
> 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.[/color]

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?)

Closed Thread