THtmlNode() > Html Attribute methods |
Sets multiple attributes and their values.
:setAttributes( <cHtmlAttr> ) --> hHash
Method :setAttributes() accepts a character string holding one or more attribute names and values and assigns these attributes to the THtmlNode object. An attribute name must be separated with an equal sign from its value. Name/value pairs are separated with blank spaces. If an attribute value contains blank spaces, it must be embedded in quotes. For example:
oDoc := THtmlDocument():new() oNode := oDoc:head + "meta" oNode:setAttributes( 'name=Generator content="xHarbour THtmlDocument class"' )
http://www.xHarbour.com