Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Firefox removes href attribute for any HTML control on copy-paste. for e.g. iFrame

  • 4 réponses
  • 2 ont ce problème
  • 342 vues
  • Dernière réponse par khushbus
  • Résolu

Hi Support,

I have a text along with the image used as a hyperlink as follows.

"Sample Text.<a href="javascript:myfunction()"><img title="sample image" src="sample.gif" /></a>"

When i copy the above text and paste it inside a HTML Control (for e.g. iframe), the control removes the href attribute of 'anchor' tag. It happens only with firefox and safari. It is working correctly in internet explorer.

"Sample Text.<a ><img title="sample image" src="sample.gif" /></a>"

Is there any solution for this.? Awaiting for sooner response

Try clicking on the below link

http://screencast.com/t/sXq6BcZvJB

Hi Support, I have a text along with the image used as a hyperlink as follows. "Sample Text.&lt;a href="javascript:myfunction()">&lt;img title="sample image" src="sample.gif" />&lt;/a>" When i copy the above text and paste it inside a HTML Control (for e.g. iframe), the control removes the href attribute of 'anchor' tag. It happens only with firefox and safari. It is working correctly in '''internet explorer'''. "Sample Text.&lt;a &gt;&lt;img title="sample image" src="sample.gif" /&gt;&lt;/a&gt;" Is there any solution for this.? Awaiting for sooner response Try clicking on the below link http://screencast.com/t/sXq6BcZvJB

Modifié le par cor-el

Solution choisie

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

Lire cette réponse dans son contexte 👍 0

Toutes les réponses (4)

Does that also happen here if you switch to HTML source and paste?

Yes, it also happens in HTML source and paste.

Solution choisie

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

Tried starting Firefox in Safe Mode but it is still not working. Please help me out!