/    Sign up×
Community /Pin to ProfileBookmark

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

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@CharlesAug 28.2005 — Try using the full URL and not just the fragment.
Copy linkTweet thisAlerts:
@winsonleeauthorAug 28.2005 — it doesnt seems to be working .. =(
Copy linkTweet thisAlerts:
@bathurst_guyAug 28.2005 — what about window.location or document.location
Copy linkTweet thisAlerts:
@winsonleeauthorAug 28.2005 — none of it works. huh . i really wonder whats wrong wif firefox browser.
Copy linkTweet thisAlerts:
@bathurst_guyAug 28.2005 — still testing
Copy linkTweet thisAlerts:
@bathurst_guyAug 28.2005 — what is it you would like to do, theres most likely another way?
Copy linkTweet thisAlerts:
@skisbyAug 07.2006 — 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
×

Success!

Help @winsonlee spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...