Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

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

All Replies (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.