搜索 | 用户支持

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

详细了解

I have a link on my webpage however it does not work in firefox or IE only in Chrome does it work what could be the problem?

  • 6 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 jlomax

more options

When i load up my website and search for a specific item there is a button on the page that will not work unless you are in google chrome! The steps to get to the page is you go to www.mfjenterprises.com. In the search box on the page type in MFJ-1204, then there will be a button at the top and bottom of the list that opens up a pdf. If you are not in chrome that button does not work! What could be causing this. I went in and checked setting and cleared my cache but it still does not work.

When i load up my website and search for a specific item there is a button on the page that will not work unless you are in google chrome! The steps to get to the page is you go to www.mfjenterprises.com. In the search box on the page type in MFJ-1204, then there will be a button at the top and bottom of the list that opens up a pdf. If you are not in chrome that button does not work! What could be causing this. I went in and checked setting and cleared my cache but it still does not work.

所有回复 (6)

more options

The buttons seem to operate via JavaScript.

The buttons do not work for me either. They press, but no action ensues.

I would check the button's JavaScript code to make sure it is correct. (Also, other JS code on the page to make sure none of it is fighting with the buttons.)

If your site is built on Google Sites, then I wonder if some of your client-side GAS may not be recognized outside of the Google platform. GAS (Google Apps Script) is JavaScript with some extra functionality that integrates with the Google API. Chrome is made by Google, so Chrome might recognize GAS scripts natively.

For help with any GAS code, maybe see the Google help forums. (I probably do not know enough to help.)

Other than these ideas, I do not know what else to try.

由jpants于修改

more options

The button actually doesn't have any JavaScript involved it's just a regular HTML button with CSS

more options

Interesting... For my test, at first, the buttons did not press when I had JS disabled. Then they did press after enabling. Now, after disabling again, they still press. Not sure what would cause that.

Anyway, sorry I do not know what else to try.

more options

The button takes precedence over the link:

<button><a href="1204 Cable Chart_web.pdf" target="_blank"><strong style="color:red">CLICK HERE</strong> to see which MFJ-1204 product and Cable works with your Radio!!</a></button>

Since the button has no script action, it does nothing, but the click does not pass through to the link. As a minimalist workaround, try adding a click handler to pass the click through to the link (the link is the first "child" element of the button):

<button onclick="this.children[0].click();">

But as an alternate strategy, you could consider dropping the button tag and styling your link to look like a button. There are numerous ways to do that. I have an ancient example here: https://jeffersonscher.com/thailand2005/food/

Right-click > Inspect Element on any of the links styled as buttons in the little navigation area in the upper right to see how it was done. Today, of course, rounded borders would be an obvious improvement...

more options

the this.children[0].click() worked however how do i keep it from opening up two copies?

more options

It works now thanks for the support.