window.location.href

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • danny

    #1

    window.location.href

    <script language="javas cript">
    function ConfirmPage() {
    window.location .href="http://ConfirmationPag e.htm";
    return false;
    }
    </script>
    How can I use this script to display a page in my current directory? It
    woriks fine when using a domain such as yahoo.com or google.com. Any
    suggestions?


  • Evertjan.

    #2
    Re: window.location .href

    danny wrote on 28 feb 2005 in comp.lang.javas cript:
    [color=blue]
    > <script language="javas cript">
    > function ConfirmPage() {
    > window.location .href="http://ConfirmationPag e.htm";
    > return false;
    > }
    > </script>
    > How can I use this script to display a page in my current directory? It
    > woriks fine when using a domain such as yahoo.com or google.com. Any
    > suggestions?[/color]

    relative adressing:

    window.location .href="Confirma tionPage.htm";

    If the originating page is on the same dirctory.


    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)

    Comment

    Working...