Find the answer to your Linux question:
Results 1 to 2 of 2
OK, this might seem a little superfluous, considering that it's called InnerHTML, but I just wanted to know that if I "innerHTML = <a href="www.whatever" etc., that I will, indeed ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Mar 2013
    Posts
    494

    Javascript InnerHTML question


    OK, this might seem a little superfluous, considering that it's called InnerHTML, but I just wanted to know that if I "innerHTML = <a href="www.whatever" etc., that I will, indeed get a link showing up on the page, and not the "<a href" stuff showing up...? i.e. it's going to parse it and render it, right?

    Thanks.

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    675
    Yes, it is parsed and rendered. If it was not, then it would be worthless as a way to update the page with html data being returned by httprequest.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •