473,320 Members | 2,146 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,320 software developers and data experts.

FAQ Topic - How do I change the text in the url/location bar?

-----------------------------------------------------------------------
FAQ Topic - How do I change the text in the url/location
bar?
-----------------------------------------------------------------------

This text can only be altered by changing the URL of the page.
The normal solution is to use frames, though this can introduce
problems of its own.
===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers.

Mar 11 '07 #1
5 6151
On Sun, 11 Mar 2007 01:00:01 +0100, FAQ server <ja********@dotinternet.be>
wrote:
-----------------------------------------------------------------------
FAQ Topic - How do I change the text in the url/location
bar?
-----------------------------------------------------------------------

This text can only be altered by changing the URL of the page.
The normal solution is to use frames, though this can introduce
problems of its own.

Changing the text in the address bar is _not done_.

Why would you assume the audacity to change the user's computer at all?
The browser is the user's property, not the author's. The fact that any
browser allows an author to remove or change the address bar at all is
pure arrogance. Keep your hands off of my browser! Your domain is the
contents of the window, not the window itself. That's mine.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mar 11 '07 #2
OmegaJunior said the following on 3/11/2007 12:21 PM:
On Sun, 11 Mar 2007 01:00:01 +0100, FAQ server
<ja********@dotinternet.bewrote:
>-----------------------------------------------------------------------
FAQ Topic - How do I change the text in the url/location
bar?
-----------------------------------------------------------------------

This text can only be altered by changing the URL of the page.
The normal solution is to use frames, though this can introduce
problems of its own.


Changing the text in the address bar is _not done_.
Sure it is, every time you navigate it changes. And yes, I can change
the text in the address bar with javascript. Make you a simple test page
with a simple script:

function changeTheAddressBarText()
{
window.location.href = "http://www.google.com"
}
window.setTimeout(changeTheAddressBarText,3000)

Watch your address bar and then come back and let me know it didn't
change via scripting.
Why would you assume the audacity to change the user's computer at all?
It's the way of the web. Links change the user's computer too, you want
to get rid of them also?
The browser is the user's property, not the author's.
Nobody said any different.
The fact that any browser allows an author to remove or change the
address bar at all is pure arrogance.
Pure utter nonsense. See above and get back to us on it.
Keep your hands off of my browser!
Nobody put hands on your browser.
Your domain is the contents of the window, not the window itself.
As long as the "window" doesn't include the text in the address bar......

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 11 '07 #3
In comp.lang.javascript message <op***************@cp139795-a.landg1.lb.
home.nl>, Sun, 11 Mar 2007 17:21:30, OmegaJunior <omegajunior@spamremove
..omegajunior.netposted:
>On Sun, 11 Mar 2007 01:00:01 +0100, FAQ server
<ja********@dotinternet.be wrote:
>-----------------------------------------------------------------------
FAQ Topic - How do I change the text in the url/location
bar?
-----------------------------------------------------------------------

This text can only be altered by changing the URL of the page.
The normal solution is to use frames, though this can introduce
problems of its own.

Changing the text in the address bar is _not done_.
Of course it is. It is part of the expected action on clicking a normal
hyperlink, or assigning to location.href. Obviously Jim (?) momentarily
forget that subtlety is wasted in News.

--
(c) John Stockton, Surrey, UK. REPLYyyww merlyn demon co uk Turnpike 6.05.
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html-Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm: about usage of News.
No Encoding. Quotes precede replies. Snip well. Write clearly. Mail no News.
Mar 12 '07 #4
On Sun, 11 Mar 2007 19:52:56 +0100, Randy Webb <Hi************@aol.com
wrote:
OmegaJunior said the following on 3/11/2007 12:21 PM:
>On Sun, 11 Mar 2007 01:00:01 +0100, FAQ server
<ja********@dotinternet.bewrote:
>>-----------------------------------------------------------------------
FAQ Topic - How do I change the text in the url/location
bar?
-----------------------------------------------------------------------

This text can only be altered by changing the URL of the page.
The normal solution is to use frames, though this can introduce
problems of its own.

Changing the text in the address bar is _not done_.

Sure it is, every time you navigate it changes. And yes, I can change
the text in the address bar with javascript. Make you a simple test page
with a simple script:

function changeTheAddressBarText()
{
window.location.href = "http://www.google.com"
}
window.setTimeout(changeTheAddressBarText,3000)

Watch your address bar and then come back and let me know it didn't
change via scripting.
>Why would you assume the audacity to change the user's computer at all?

It's the way of the web. Links change the user's computer too, you want
to get rid of them also?
>The browser is the user's property, not the author's.

Nobody said any different.
>The fact that any browser allows an author to remove or change the
address bar at all is pure arrogance.

Pure utter nonsense. See above and get back to us on it.
>Keep your hands off of my browser!

Nobody put hands on your browser.
>Your domain is the contents of the window, not the window itself.

As long as the "window" doesn't include the text in the address bar.......
No. The address bar contents are changed by the user and by the browser....
and I expect no less. That address bar is owned by the browser so it can
pretty much do with it what it wants. And that browser is owned by me, so
if it doesn't do what I want I'll go with the competition. Plenty of
browsers out there. If need be I'll whip up my own.

The web page author _can_ change the contents of the address bar, but they
_shouldn't_. Don't presume that you should just because you can. That too,
is arrogance. Why? Because that address bar contains crucial information
which allows me to identify a resource. It shows me who you are, so I know
or can find out whether I can trust you or not.

If the web author chooses to obfuscate that identification, that trust is
lost. If I suspect you're tampering with my address bar, you will loose me
as a customer. Bye bye, I'll spend my money over at your competition, who
don't cheat.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mar 16 '07 #5
On Sun, 11 Mar 2007 21:32:50 +0100, Dr J R Stockton
<re*******@merlyn.demon.co.ukwrote:
In comp.lang.javascript message <op***************@cp139795-a.landg1.lb.
home.nl>, Sun, 11 Mar 2007 17:21:30, OmegaJunior <omegajunior@spamremove
.omegajunior.netposted:
>On Sun, 11 Mar 2007 01:00:01 +0100, FAQ server
<ja********@dotinternet.be wrote:
>>-----------------------------------------------------------------------
FAQ Topic - How do I change the text in the url/location
bar?
-----------------------------------------------------------------------

This text can only be altered by changing the URL of the page.
The normal solution is to use frames, though this can introduce
problems of its own.

Changing the text in the address bar is _not done_.

Of course it is. It is part of the expected action on clicking a normal
hyperlink, or assigning to location.href. Obviously Jim (?) momentarily
forget that subtlety is wasted in News.
Dude. I was talking about a web author changing the address. That's what
the FAQ is addressing as well. We all know that the _browser_ can change
its own address bar. Don't change topics on me now.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mar 16 '07 #6

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

Similar topics

5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I force a reload from the server/prevent caching?...
5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar?...
1
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar?...
1
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I force a reload from the server/prevent caching?...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.