HighDots Forums  

Re: how to replace a URL in the address bar

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: how to replace a URL in the address bar in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Dorward
 
Posts: n/a

Default Re: how to replace a URL in the address bar - 10-01-2003 , 02:32 PM






Mark Kamoski wrote:

Quote:
How can one replace the URL in the address bar to a "friendly
alternative"?
The addressbar can not display anything other then a real URI that
references the page currently being viewed in the top frame.

Quote:
Is there a way to do this with JavaScript?
No

For example, suppose [...] I browse to one section in this site, the URL may
Quote:
look like this...

http://www.MySite.com/Data/Page.htm?...Description=52

...and so on, with many different ugly URL strings....
Use some form of address rewriting (or just clever scripting) so that you
have it in the form:

http://www.MySite.com/Data/17/52/

.... having your content management system spit out more useful ways to
reference the data would be a good idea.

Quote:
...now, what I want to do is to make the URL in the browser's window
always look like this...

http://www.MySite.com

...no matter what page I am on in the site.

What do you think?
I think its a good way to screw up the ability of visitors to bookmark
pages, but possible with frames (although search engines will bypass them
as usual).

http://evolt.org/article/Search_Engi...049/index.html
and
http://evolt.org/article/Search_Engi...171/index.html
might be of use (although you would have to adapt them to ASP)


--
David Dorward http://dorward.me.uk/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.