S
Steve
I am using Firefox and he following works fine in a .js file:
var target = document.getElementById("myheader").innerHTML;
But when I try
var targetId = target.getAttribute("id"); or
var targetId = target.getAttribute("id").innerHTML;
I get this error in Firebug "target.getAttribute is not a function"
I would be grateful for any assistance.
var target = document.getElementById("myheader").innerHTML;
But when I try
var targetId = target.getAttribute("id"); or
var targetId = target.getAttribute("id").innerHTML;
I get this error in Firebug "target.getAttribute is not a function"
I would be grateful for any assistance.