<Form ID = "form1" runat = "server">
<Input id = "clkbtn" type = "button" value = "addclickonbtn"/>
<Asp: scriptmanager id = "scriptmanager1" runat = "server">
</ASP: scriptmanager>
<Script language = "JavaScript" type = "text/JavaScript">
$ Addhandlers ($ get ("clkbtn "),{
Mouseover: onmouseover,
Mouseout: onmouseout
});
Function onmouseover (e) {This. style. backgroundcolor = 'yellow ';}
Function onmouseout (e) {This. style. backgroundcolor = 'white ';}
VaR article = SYS. UI. domelement. getelementbyid ('clkbtn ');
Alert (article. value );
VaR article = $ get ('clkbtn ');
Alert (article. value );
VaR article = $ get ('clkbtn ');
VaR position = SYS. UI. domelement. getlocation (Article );
VaR x = position. X, Y = position. Y;
Alert (X );
Alert (y );
VaR menu = $ get ('clkbtn ');
SYS. UI. domelement. setlocation (menus, 500,500 );
VaR article = $ get ('clkbtn ');
VaR bounds = SYS. UI. domelement. getbounds (Article );
SYS. Debug. tracedump (bounds, 'Article position and size ');
VaR A = ['A', 'B', 'C', 'D'];
VaR B = array. Clone ();
Alert (B );
VaR A = ['red', 'green', 'Blue ', 'yellow'];
VaR B = array. contains (a, "Red ");
Alert (B );
VaR myarray = [], result = "";
Array. Add (myarray, 'A ');
Array. Add (myarray, 'B ');
Array. Add (myarray, 'C ');
Array. Add (myarray, 'D ');
Result = array. dequeue (myarray );
Alert (myarray );
Alert (result );
VaR A = ['A', 'B', 'C', 'D'];
A [5] = 'E ';
VaR result = '';
Function appendtostring (arrayelement, index, array ){
Result + = arrayelement + This + index + ',';
}
Array. foreach (A, appendtostring, '| ');
Alert (result );
VaR A = ['red', 'blue', 'green', 'blue'];
VaR myfirstindex = array. indexof (a, "blue ");
VaR mysecondindex = array. indexof (a, "blue", (myfirstindex + 1 ));
// Myfirstindex = 1, mysecondindex = 3
Alert (myfirstindex );
Alert (mysecondindex );
VaR A = ['A', 'B', 'D', 'E'];
Array. insert (A, 2, 'C ');
Alert ();
VaR A = array. parse ("['red', 'blue', 'green']");
Alert (A [0]);
Alert (A [1]);
Alert (A [2]);
VaR A = ['A', 'B', 'C', 'D', 'E'];
Array. Remove (A, 'C ');
Alert ();
Array. removeat (A, 2 );
Alert ();
</SCRIPT>
</Form>