...

View Full Version : How to change web browser address field



Alann
10-19-2003, 09:48 PM
I have a webpage with a link to mypage.htm. However when I click on this link I have it set up to redirect to my free web hosting space with my ISP. However, since I have things set up to redirect the URL address that shows up in the Address field of my web browser does not change but continues to only display http://mydomain.com and does not change to http://mydomian.com/mywebpage.htm no matter which webpage I link to on my website.

Is there a way to make the proper webpage URL address show up in my web browser Address field using javaScript?

Thanks for your answer in advance...

liorean
10-19-2003, 10:28 PM
Hmm, this might be easier to solve if you gave us a link to your pages...

A guess is that you should modify your redirects on the server, not try to change it through JavaScript.

justame
10-20-2003, 12:05 AM
ala...
does the just a webspace® on your isp 'frame' your pages???


n' tooo??? you could just a try® putting the ol' target="_top" into your <a href="mypage.htm" target="_top"> tag...

Alann
10-20-2003, 07:58 PM
Thank you for your responses. To answer your questions:
1. Yes I am using FRAMING.
2. My website is http://www.daily-devotions.org

What I want to have happen is that when someone clicks on my link to take them to lets say http://www.daily-devotions.org/devotions.htm I want this URL address to show up in the web browser Address field even though in reality the webpage is redirected to http://users3.ev1.net/~anortham/devotions/devotions.htm

Thanks for your help,
Alann

Roy Sinclair
10-20-2003, 10:07 PM
Originally posted by Alann
Thank you for your responses. To answer your questions:
1. Yes I am using FRAMING.
2. My website is http://www.daily-devotions.org

What I want to have happen is that when someone clicks on my link to take them to lets say http://www.daily-devotions.org/devotions.htm I want this URL address to show up in the web browser Address field even though in reality the webpage is redirected to http://users3.ev1.net/~anortham/devotions/devotions.htm

Thanks for your help,
Alann

This isn't possible via javascript and for a very good reason. Suppose you set up a site at slimypeople.com and manage to intercept people who are getting pages from goodpeople.com so that your site serves the pages instead. If you could disguise your slimypeople.com site as goodpeople.com then you could fool the users into thinking that they've really reached goodpeople.com and thus get them to give you information they'd never give you if they knew who you really were.

In short, it wouldn't be good if any site could so easily pretend to be some other site.

Alann
10-20-2003, 10:41 PM
But that is what FRAMING does anyway. When people go to a particular URL Address they are thinking that they are at mydomain.com when in reality the web pages are being served at someotherplace.com. The only problem with FRAMING (as far as I understand it) is that when you are at someotherplace.com, which is where your index page really resides, and you link to another webpage within your website you still think that you are at mydomain.com. What I was hoping to do was to make the web browser look like the URL has changed, which it has, such as mydomain.com/mywebpage.htm instead of looking like you are still on the index page when in reality you are at mywebpage.htm. To me it would be an improvment in FRAMING. You can see what I mean by going to my website, see URL address in an earlier post. When you click on a like to go to another webpage the URL address in the Address field of the web browser does not change.

However, if it cannot be done, then it cannot be done. I was just wondering if there was a way to improve on the shortcoming of FRAMING using javascript.

liorean
10-20-2003, 11:01 PM
The thing is, the frameset document is still the same, right? And it's the address of the frameset document that will show through, not the address of the framed pages.

justame
10-20-2003, 11:26 PM
ala...
hmmm...welll ifin' ya reallly wanted the 'url' to change??? thennn seems that the only way you can just a do® it is to have the 'link' load just a NEW® frameset...
http://www.daily-devotions.org/devotions.htm consisting of your original 'pages' included in the first frameset only nowww include your devotion.html for whatever page/area it is to replace...:O)))

aka each of your 'links' would load just a newpage/frameset®...kinda defeats the purpose though of usin' frames...:O(((

n' just a whispers®...still rubbin' /mes keyboard over the 'blinking' link @ the bottom of the page...lol...

Alann
10-21-2003, 02:47 PM
An added note about Framing:

I do not have an index page that uses a frame set to frame the webpages on my website. The framing is done on a DNS server.


Justame,

Can you give me an example as to how to do as you suggest?

Thanks,
Alann

justame
10-22-2003, 04:38 AM
ala...
/me hmmms...on this part???
I do not have an index page that uses a frame set to frame the webpages on my website. The framing is done on a DNS server.


ummm...can you upload just a page® called ... devotions.htm (which would be the NEW just a frameset® page) to the webspace that is holding http://www.daily-devotions.org ???

ifin' you can??? thennn your devotions.htm would be ...

<HTML>
<HEAD>
<meta name="DESCRIPTION" content="">
<TITLE>devotions.htm</TITLE>
</HEAD>
<!-- Redirection Services Redirector2B-DAL 404-T -->
<FRAMESET ROWS="100%, *" frameborder="no" framespacing=0 border=0>
<FRAME SRC="http://users3.ev1.net/~anortham/devotions/devotions.htm" NAME="mainwindow" frameborder="no" framespacing="0" marginheight="0" marginwidth="0"></FRAME>
</FRAMESET>
<NOFRAMES>
<CENTER>
<H2>
Your browser does not support frames. We recommend upgrading your browser.
</H2>
<br><br>
Click <a href="http://users3.ev1.net/~anortham/devotions/devotions.htm">here</a> to enter the site.
</CENTER>
</NOFRAMES>
</HTML>


does thattt just a help®???
but it cannn happen 'cause when /me just a clicked® on the ... http://www.daily-devotions.org/devotions.htm ... where roy just a quoted® ya??? you dooo see that in the url

Alann
10-22-2003, 08:15 PM
Thanks Justame for the code!

I created a hypertext link at the bottom of my index page (called "test link") at www.daily-devotions.org to call a new webpage called framepage.htm. I then inserted your code on that page. However when the famepage.htm code calls http://users3.ev1.net/~anortham/devotions/devotions.htm the URL address still does not change from www.daily-devotions.org to www.daily-devotions.org.devotions.htm

Did I do something incorrectly?

Thanks,
Alann

Alann
10-23-2003, 04:57 PM
Thanks guys for the help, I have solved my problem!

What I did was add "target=_top" to all my hytpertext links which in effect breaks me out of frames and now my URL address shows the main domain name and the webpage I have linked too such as http:www.mydomain.com/mywebpage.htm. To see how this works you can go to my site at http://www.daily-devotions.org . When you link to the webpages within my site the actual url address is something like http://users3.ev1.net/~anortham/devotions/suchandsuch.htm but looks like http://www.daily-devotions.org/suchandsuch.htm. You can of course view the properties of the webpages within my site to see the actual url addressses of the webpages but the URL Address in the Web browser now shows something that makes more since which is mydomain.com/mywebpages.htm.


Alann,

justame
10-24-2003, 12:20 AM
Originally posted by Alann
Thanks guys for the help, I have solved my problem!

What I did was add "target=_top" to all my hytpertext links which in effect breaks me out of frames

ala...
youre more than just a welcome®...whooo woulda thought the ol'...
"quote...n' tooo??? you could just a try® putting the ol' target="_top" into your <a href="mypage.htm" target="_top"> tag...endquote"
woulda worked...hehehe.../me nowww 'thinks' she understands howww those dns redirectors work...:O)))

n' whispers...upto this point??? /me still thought she wasnt programmed to think...theres hope for /me yet...rotflmao!!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum