W
webmaniac
Hi,
I am creating a table dynamically in javascript.
All is fine but when I try to put any ahref link on the cell its not
taking it. I am doing like that.
var rowHead1 = document.createElement('TR');
var CellHead1 = document.createElement('TD');
var text1 = "<a href=http://www.google.com>" + someVariable + "</a>
var cellHeadText1 = document.createTextNode(text1);
CellHead1.appendChild(cellHeadText1);
But somehow when I run this example.
It shows like that in Table cell.
<a href=http://www.google.com>abc</a>
Its not converting it into a Link.
Any Idea, what's going wrong here.
I am creating a table dynamically in javascript.
All is fine but when I try to put any ahref link on the cell its not
taking it. I am doing like that.
var rowHead1 = document.createElement('TR');
var CellHead1 = document.createElement('TD');
var text1 = "<a href=http://www.google.com>" + someVariable + "</a>
var cellHeadText1 = document.createTextNode(text1);
CellHead1.appendChild(cellHeadText1);
But somehow when I run this example.
It shows like that in Table cell.
<a href=http://www.google.com>abc</a>
Its not converting it into a Link.
Any Idea, what's going wrong here.