Search Support

Beware of phishing attacks: Mozilla will never ask you to call a number or visit a non-Mozilla website. Please ignore such requests.

Learn More

Why href="#XXX" doesn´t work on firefox?

  • 12 replies
  • 9 have this problem
  • 1945 views
  • Last reply by elfujiyama69

more options

First at all, sorry for repost about this topic but the topic that i saw doesn´t solve my problem. I have this code:

<tr>
    <td align="left">&nbsp;
		<a class="soporte" href="#faq_<%=id_grupo2%>_<%=orden2%>" style="font-family:cursive; FONT-WEIGHT:normal;">
		&nbsp;<strong><%=pregunta2%></strong></a>
	</td>
</tr>			
<% }
	}%>	
<tr> <td align="center" class="FilaTransparenteSoporte"> </td></tr>
<tr class="<%=claseFila%>">
	<td align="left" class="<%=claseFila%>">&nbsp;
		<a id="faq_<%=id_grupo%>_<%=orden%>" name="faq_<%=id_grupo%>_<%=orden%> </a><strong><%=pregunta%></strong>
	</td>
</tr>

My problem is that the <a class="soporte" href="#faq_<%=id_grupo2%>_<%=orden2%>...</a>" doesn't do anything. It´s works in all browsers less firefox. Could anybody help me?

PD: Thanks for everything and sorry about my english...

Modified by cor-el

Chosen solution

Hi everybody!!

I finally solve the problem. I dont know what was the real problem but Im going to explain how I solve it. That code was in a iframe that is located in a parent jsp and it is empty until I call a javascript function which calls a jsp in the server and this fill the iframe.

Cor-el The text in the id and in the href are exactly the same.

Well, if I open that iframe in a new tab the href works but not in the parent frame. My solution was to delete the iframe and write the code directly in the parent jsp. I don´t know if you understand because it´s difficult to explain and more in English for me...

PD: Thanks everybody for your help and thanks guigs2 for the information!

Read this answer in context 👍 4

All Replies (12)

more options

What are you trying to do with that code?

more options

Im trying to move to other place on the same page

more options

I dont know how to write the code on this thing... but i think the image will helps to see what it is doing xD

more options

elfujiyama69,

Okay, forgive me for not understanding. Are you having problems with HTML and don't know what code to use or are you having problems with Firefox's Developer Tools?

Exactly what are you trying to achieve with the code? Are you building a site?

more options

Hi Moses,

First at all thanks for your help! Im building a web application. The first <a href> tag its supossed to move to the other <a> tag below. Its works in chrome and IE but I dont get it on firefox.

more options

Ah, okay! I understand you, now.

I don't know much about programming so I'm not the best person to help you on this issue, but I'll get someone else to help you out with this.

I've also escalated this thread to the SUMO Help Desk who are full-time Mozilla employees.

Modified by Moses

more options

Thanks for your time Moses!

more options

You seem to be using Unicode quotes instead of the normal quotes ("), so check your code.

more options

Hi cor-el,

Thanks for your time. No, I´m using normal quotes

more options

What is the resulting code send by the server after it has been processed?

more options

I looked in the mdn website and found some references to the asp/jsp method you are using and looks at some templates:

stackoverflow.com will have some better insight on ASP.net methods:

If the issue continues, please file a bug with [dev.webcompat.com] :-)

more options

Chosen Solution

Hi everybody!!

I finally solve the problem. I dont know what was the real problem but Im going to explain how I solve it. That code was in a iframe that is located in a parent jsp and it is empty until I call a javascript function which calls a jsp in the server and this fill the iframe.

Cor-el The text in the id and in the href are exactly the same.

Well, if I open that iframe in a new tab the href works but not in the parent frame. My solution was to delete the iframe and write the code directly in the parent jsp. I don´t know if you understand because it´s difficult to explain and more in English for me...

PD: Thanks everybody for your help and thanks guigs2 for the information!