搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Links of the Format "javascript: void (0)" Don't Work

  • 4 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

On several sites, links in the format javascript: void (0) don't work. A specific example is the attachment download links in Rackspace webmail. Though they are active, when clicked, nothing happens - normally, an attachment would download.

I am using the latest version of Firefox for OS X, I've tried clearing the cache, I've reset Firefox, I've used safe mode, and nothing works.

Suggestions?

Thanks.

On several sites, links in the format javascript: void (0) don't work. A specific example is the attachment download links in Rackspace webmail. Though they are active, when clicked, nothing happens - normally, an attachment would download. I am using the latest version of Firefox for OS X, I've tried clearing the cache, I've reset Firefox, I've used safe mode, and nothing works. Suggestions? Thanks.

所有回复 (4)

more options

javascript:void(0) actually is a "do nothing" command. When sites use this in a link, they override it by adding a script to the link using another method, either onclick (in the link tag itself) or addEventListener (added after the page loads using a script).

It sounds as though the script is being blocked in your Firefox (possibly by security software that strips out scripts?) or the effect of the script is being blocked (possibly by an overly aggressive popup blocker?) or the script is failing for some reason (possibly cookie-related???).

Did this just start suddenly without any apparent cause, or can you associate it with a change such as upgrading from Firefox 30 to Firefox 31, or a change in other software on your Mac?

more options

You do not appear to have extensions that could be responsible for this blocking.

Did you already try to clear the cache and remove cookies only from websites that cause problems?

"Clear the Cache":

  • Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"

"Remove Cookies" from sites causing problems:

  • Firefox > Preferences > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
more options

This seems to have started happening on its own - no changes on my part.

more options

Try to reinstall Firefox.

Download a new copy of the Firefox application and save the disk image file to the desktop

Your personal data is stored elsewhere in the Firefox profile folder, so you won't lose your bookmarks and other personal data when you uninstall and (re)install Firefox.

If you keep having problems then try a new profile.

See "Creating a profile":

If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.