dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: End Of page for Firefox

  1. #1
    Join Date
    May 2005
    Posts
    24

    End Of page for Firefox

    <script language="javascript">
    self.location="#scrolldown";
    </script>

    <a name="scrolldown"></a>

    I have problem using this script for Firefox. When the script is loaded, nothing is displayed on the page. ANyone knows what went wrong ??

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    Try using the full URL and not just the fragment.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    May 2005
    Posts
    24
    it doesnt seems to be working .. =(

  4. #4
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    what about window.location or document.location

  5. #5
    Join Date
    May 2005
    Posts
    24
    none of it works. huh . i really wonder whats wrong wif firefox browser.

  6. #6
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    still testing
    Last edited by bathurst_guy; 08-28-2005 at 08:24 AM.

  7. #7
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    what is it you would like to do, theres most likely another way?

  8. #8
    Join Date
    Aug 2006
    Posts
    1
    The solution for FireFox is to include the script or call the script following all # name references.

    In IE 6 the script will work if placed anywhere on the HTML page, presumably because the scrip executes after the page has loaded or loads until the # name reference is found. However in FireFox (version 1.5.0.6) it can't find the # name reference (but will display the # name reference in the location bar) if location, window.location, window.location.href, window.location.replace, location.replace, window.location.assign, or self.location is executed in the HTML before the # name reference.

    Note that window.navigate only works in IE.

    My application was on a simple calendar page where, if JavaScript is enabled, I wanted to jump to the current month's listings. My implementation can be found at http://www.wreckbeach.org/calender.html

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles