Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    New Coder
    Join Date
    Oct 2003
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to change web browser address field

    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...

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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...

  • #4
    New Coder
    Join Date
    Oct 2003
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #6
    New Coder
    Join Date
    Oct 2003
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #7
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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...

  • #9
    New Coder
    Join Date
    Oct 2003
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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

  • #11
    New Coder
    Join Date
    Oct 2003
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #12
    New Coder
    Join Date
    Oct 2003
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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/devo...uchandsuch.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,

  • #13
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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!!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •