D
darrel
On some of my pages I add a javascript call dynamically to the BODY tag:
pageBody.Attributes.add("onload", "dothis();")
Since this adds an actual attribute, trying to call this multiple times
simply replaces the attribute I created rather than adding new values to the
existing attribute. Which makes sense.
But what if I want to append values to a single attribute. What's the proper
way to do that?
One thought was to make a new variable or an array and add to that as the
value, but was wondering if there was a more direct method.
-Darrel
pageBody.Attributes.add("onload", "dothis();")
Since this adds an actual attribute, trying to call this multiple times
simply replaces the attribute I created rather than adding new values to the
existing attribute. Which makes sense.
But what if I want to append values to a single attribute. What's the proper
way to do that?
One thought was to make a new variable or an array and add to that as the
value, but was wondering if there was a more direct method.
-Darrel