Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Unable to display the link which is created Dynamically using Javascript:In FIREFOX

Unable to display the link which is created Dynamically using Javascript:In FIREFOX

Scheduled Pinned Locked Moved Web Development
javascripthtmlhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shravanthi
    wrote on last edited by
    #1

    Hi All, I am displaying a anchor tag in a table which is created dynamically using Javascript. Below is the code for it. var EmpID = "E000011"; . . . . Td = document.createElement("td"); var anchorTag = document.createElement("a"); anchorTag.setAttribute("innerHTML",EmpID); anchorTag.setAttribute("href","example.html?EmpID="+numEmpID); Td.appendChild(anchorTag); Tr.appendChild(Td); . . . . This is working well in IE. Coming to Firefox the link button itself is not getting display. Can anyone help me out???????? Thanks, Shravanthi...

    D 1 Reply Last reply
    0
    • S Shravanthi

      Hi All, I am displaying a anchor tag in a table which is created dynamically using Javascript. Below is the code for it. var EmpID = "E000011"; . . . . Td = document.createElement("td"); var anchorTag = document.createElement("a"); anchorTag.setAttribute("innerHTML",EmpID); anchorTag.setAttribute("href","example.html?EmpID="+numEmpID); Td.appendChild(anchorTag); Tr.appendChild(Td); . . . . This is working well in IE. Coming to Firefox the link button itself is not getting display. Can anyone help me out???????? Thanks, Shravanthi...

      D Offline
      D Offline
      douss
      wrote on last edited by
      #2

      Hi, Try :

      anchorTag.innerHTML = EmpID;

      instead of :

      anchorTag.setAttribute("innerHTML",EmpID);

      S 1 Reply Last reply
      0
      • D douss

        Hi, Try :

        anchorTag.innerHTML = EmpID;

        instead of :

        anchorTag.setAttribute("innerHTML",EmpID);

        S Offline
        S Offline
        Shravanthi
        wrote on last edited by
        #3

        Thanks for the answer.....We have already done with that :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups