...

View Full Version : innerHTML - does not become HTML ?



BubikolRamios
12-10-2010, 11:12 AM
//this works, i.e. link appears as link
mTopDiv2.innerHTML ="Arange 1.0.0 by <B>Cvenkel Miran</B> <a href = 'http://agrozoo.net/'>agrozoo.net</a>";

//this does not, i.e everything appears as ordinary text
mTopDiv2.innerHTML = explanationText + "&nbsp;&nbsp;&nbsp;&nbsp;" + copyrightText;
//it appears as this text:




<a href = 'http://en.wikipedia.org/wiki/Silver-washed_Fritillary'>Argynnis paphia</a> <a target = '_blank' href = 'http://www.slo-foto.net/portfolio/BubikolRamios'> Cvenkel Miran</a>


?

BubikolRamios
12-10-2010, 11:25 AM
I had '&lt;' instead of '<' in those variables

Hmm, posibly coz some html validator complained ,...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum