By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,483 Members | 3,312 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,483 IT Pros & Developers. It's quick & easy.

Problem storing to innerHTML (extra <A></A>)

P: 1
I am having fits with a bit of JavaScript. I am filling in a <DIV> with a text string fetched from a database, and find that as soon as the browser executes
Expand|Select|Wrap|Line Numbers
  1. p.innerHTML = txt
the div (pointed to by p) does not contains just the text, but contains a link surrounding the text:
Expand|Select|Wrap|Line Numbers
  1. <a>{text}</a>

Where did that come from, and how do I make it stop?
Feb 5 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Post some more code including the div.
Feb 6 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.