Esempio n. 1
0
 /// <summary>Called when the element is focused.</summary>
 public override void OnFocus()
 {
     if (!IsTextInput() || Cursor != null)
     {
         return;
     }
     // Add a cursor.
     Element.appendInnerHTML("<div class='cursor'></div>");
     Cursor      = Element.getElementByAttribute("class", "cursor");
     CursorIndex = 0;
 }
 /// <summary>Writes the given html to the end of the document.</summary>
 /// <param name="text">The html to write.</param>
 public void write(string text)
 {
     body.appendInnerHTML(text);
 }