IE document.URL broken - know of a fix?

Discussion in 'HTML' started by David, Dec 3, 2005.

  1. David

    David Guest

    I'm using the following script:

    <!--
    passpage = document.URL;
    if (top.location == self.location) top.location.href="frameMaster.html?"
    + passpage;
    // -->

    For purposes of this post, you can shorten it to:

    <!--
    passpage = document.URL;
    // -->

    This is used for viewing files on the hard drive, so the first part of the
    'passpage' should be something like: "file:///D:/"... FireFox works
    correctly, and older versions of IE worked, but not the current 6.0 version
    I'm using. It only returns two '/' after the 'file:' portion (ie -
    "file://D:/"...). You can't open a page based upon that URL. Anyone seen
    a fix for this, or do I have to roll my own?

    Thanks,
    David
     
    David, Dec 3, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Patrick Philippot
    Replies:
    0
    Views:
    465
    Patrick Philippot
    Apr 14, 2006
  2. Xah Lee
    Replies:
    22
    Views:
    1,138
    Tim Roberts
    Mar 21, 2006
  3. Xah Lee
    Replies:
    23
    Views:
    1,084
    Tim Roberts
    Mar 21, 2006
  4. Andries

    I know, I know, I don't know

    Andries, Apr 23, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    236
    Gregory Toomey
    Apr 23, 2004
  5. Xah Lee
    Replies:
    21
    Views:
    803
    Tim Roberts
    Mar 21, 2006
Loading...

Share This Page