Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Remove id attribute


Fotiman - 2:28 pm on May 16, 2012 (gmt 0)


document.getElementById("name1").removeAttribute("id");

Setting id to an empty string will not remove the attribute. You can verify this by using browser tools like Firebug or Chrome's Developer Tool to inspect the element and you'll still see an empty id attribute defined.


Thread source:: http://www.webmasterworld.com/javascript/4454143.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com