diff --git a/doc.md b/doc.md
index 44b4db5..b253298 100644
--- a/doc.md
+++ b/doc.md
@@ -42,6 +42,11 @@
#####[LEvent](#LEvent)
+##[Window](#Window)
+ This is a work in progress.
+
+#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
+
##
Keyboard
@@ -366,3 +371,21 @@ func main() {
}
}
```
+
+##Window
+
+###.ShowAlert(title, msg,defaultButton,cancelButton string)
+
+ Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed
+
+####Arguments:
+
+ title(string),
+ msg(string),
+ defaultButton(optional string),
+ cancelButton(optional string)
+
+
+####Return:
+
+ Returns True if the default button was pressed, or False if cancelled.
diff --git a/zh_doc.md b/zh_doc.md
index 0894d04..a2b3fd7 100644
--- a/zh_doc.md
+++ b/zh_doc.md
@@ -42,6 +42,11 @@
#####[LEvent](#LEvent)
+##[Window](#Window)
+ This is a work in progress.
+
+#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
+
##键盘
###.SetKeyboardDelay(ms)
@@ -379,4 +384,22 @@ func main() {
Println("you press...", "mouse left button")
}
}
-```
\ No newline at end of file
+```
+
+##Window
+
+###.ShowAlert(title, msg,defaultButton,cancelButton string)
+
+ Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed
+
+####Arguments:
+
+ title(string),
+ msg(string),
+ defaultButton(optional string),
+ cancelButton(optional string)
+
+
+####Return:
+
+ Returns True if the default button was pressed, or False if cancelled.
\ No newline at end of file