setElementAttribute
Sets the specified attribute of the specified element to the specified value.
Syntax
setElementAttribute = function(aElement, aAttribute, aValue);
Parameters
- aElement
- functions: element which attribute value has to be set
- aAttribute
- functions: attribute which value has to be set
- aValue
- 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,'value','MyName');