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.create Element('TR');
var CellHead1 = document.create Element('TD');
var text1 = "<a href=http://www.google.com> " + someVariable + "</a>
var cellHeadText1 = document.create TextNode(text1) ;
CellHead1.appen dChild(cellHead Text1);
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.create Element('TR');
var CellHead1 = document.create Element('TD');
var text1 = "<a href=http://www.google.com> " + someVariable + "</a>
var cellHeadText1 = document.create TextNode(text1) ;
CellHead1.appen dChild(cellHead Text1);
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.
Comment