Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

URL ends with #

  • 4 trả lời
  • 1 gặp vấn đề này
  • 12 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

if a URL ends with '#'(like "http://www.example.com/diamond-diva/p/ds444444#") and press Enter key in addressbar then it does not send request but if i press F5 then it reloads the page. What it is behaving like this ?

if a URL ends with '#'(like "http://www.example.com/diamond-diva/p/ds444444#") and press Enter key in addressbar then it does not send request but if i press F5 then it reloads the page. What it is behaving like this ?

Giải pháp được chọn

The # character refers to an internal location in a page. For example, when you see a table of contents in an article, those entries may go to different locations in the page by adding # and a label after it. If you mouse over the links below the video in the following article, you'll see what I mean: Where to find and manage downloaded files in Firefox.

So... if you have that page open already, and you press Enter on that URL, instead of reloading the page, Firefox will simply try to go to that label in the page. When there is # without anything after it, the result is that nothing happens because that's not a valid label name.

You might be wondering why you have a URL with a useless # at the end of it. The typical scenario is that you click a link that was supposed to run a script. The link didn't have a "real" URL, just # as a backstop to prevent you from accidentally leaving the page. Carefully written scripts usually cancel the link so you never see the URL with the useless # at the end, but many of them don't.

There. Way more than you wanted to know.

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (4)

more options

Giải pháp được chọn

The # character refers to an internal location in a page. For example, when you see a table of contents in an article, those entries may go to different locations in the page by adding # and a label after it. If you mouse over the links below the video in the following article, you'll see what I mean: Where to find and manage downloaded files in Firefox.

So... if you have that page open already, and you press Enter on that URL, instead of reloading the page, Firefox will simply try to go to that label in the page. When there is # without anything after it, the result is that nothing happens because that's not a valid label name.

You might be wondering why you have a URL with a useless # at the end of it. The typical scenario is that you click a link that was supposed to run a script. The link didn't have a "real" URL, just # as a backstop to prevent you from accidentally leaving the page. Carefully written scripts usually cancel the link so you never see the URL with the useless # at the end, but many of them don't.

There. Way more than you wanted to know.

more options

Thanks for replaying! Then why 'F5' key reloads the page whereas 'Enter' key does nothing on the same URL("http://www.example.com/diamond-diva/p/ds444444#") ?

more options

The F5 key (or Ctrl+r) forces a reload. When you press Enter on a URL that has a #label, Firefox follow the same logic as clicking a link in the page, which is, if that page already is open in that tab, go to the #label.

more options

You need to make sure that you aren't blocking JavaScript.

Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • Press and hold Shift and left-click the Reload button.
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (MAC)

Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).

  • Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.