Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

when press Ctrl+click link, address bar show :"javascript:goHorseRecord2('//www.hkjc.com/chinese', 'B177');" and nothing.

  • 1 отговор
  • 1 има този проблем
  • 2 изгледи
  • Последен отговор от Wesley Branton

more options

when press Ctrl+click a link, address bar show :"javascript:goHorseRecord2('//www.hkjc.com/chinese', 'B177');" and show nothing page..

when press Ctrl+click a link, address bar show :"javascript:goHorseRecord2('//www.hkjc.com/chinese', 'B177');" and show nothing page..

Всички отговори (1)

more options

Do not Ctrl + Click on the link.

Obviously, the website that you are having issues with is using that link to run a piece of Javascript code instead of loading a page.

Basically, a website link code looks like this:

<a href="http://mozilla.org">This is a link</a>

However, if the developer wants to use that link to run a piece of code on the same page instead of using it to direct Firefox to a website. For example, making a link display an alert box when you click on the link would have the following code instead:

<a href="javascript:alert('Hi!')">This is a link</a>

It's not a great way to design a website, but there are a lot of pages out there that still use this method.

So when you Ctrl + Click on the link, Firefox is trying to open the website in a new tab or new window. Essentially, Firefox is taking the text in the href part of the code and pasting it into the address bar of a new tab.

Since what it's copying and pasting is not an actual website URL, Firefox won't be able to load anything and you will just get the blank page that you are likely getting now.

This is a technical explanation to just say that you cannot Ctrl + Click on that particular link because the company that made the website has made that link run a piece of code instead of load a website.

Hope this helps.