-
insert href into table cell using javascript
Hi,
I want to insert href into tabel cell using javascript. Note should support all browser.
I know to insert, but it support only in IE, I checked in firefox, it does not support so please help me.
This is code to insert(works in IE)
var myLink = document.createElement('a');
var href = document.createAttribute('href');
myLink.setAttribute('href','javascript:removeRow(' +pos+')');
myLink.innerText ="Delete";
newCell.appendChild(myLink);
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks