====== SetElementAttribute ====== Sets the specified attribute of the specified element to the specified value. ===== Syntax ===== procedure SetElementAttribute(aElement: TCSElement; aAttribute: string; aValue: string); ==== Parameters ==== * **//aElement//** * //type:// [[en:wascript:pascal:records:tcselement|TCSElement]] * //functions:// element which attribute value has to be set * **//aAttribute//** * //type:// string * //functions:// attribute which value has to be set * **//aValue//** * //type:// string * //functions:// attribute value ===== Examples ===== -//Loading page google.ru LoadURI('google.ru'); //Get an element (request input field) var element:=GetElement('input',0,['class','id'],['gbqfif','gbqfq'],true); //Set the value of the attribute "name" equal to "MyName" SetElementAttribute(element,'name','MyName');