|
Thanks for this tutorial. Very well written. I would agree with you about just using setAttribute() except the reason I came looking for a tutorial like this in the first place is because I was getting a script error of "element.setAttribute() is not defined" when trying to use setAttribute on an element that doesn't already contain the kind of attribute that I was looking to add so I had to wrap my attribute creation in a Try Catch, using setAttribute() in the Try and your createAttribute technique in my Catch.
|
|
|