onSubmit?
OnPost or OnNew
Class Browser
Access dialogboxes
From Service Base
This class provides access to Google Apps specific dialogboxes.
Methods:
| Method | Return Value | Description |
|---|---|---|
| msgBox | String | Pops up a dialog box with an OK button in the user's browser. |
| inputBox | String | Pops up a dialog box with a text input box in the user's browser. |
method msgBox(prompt)
Pops up a dialog box with an OK button in the user's browser.
Arguments:
| Name | Type | Description |
|---|---|---|
| prompt | String | text to be displayed in the dialog box |
Return Values:
| Type | Description |
|---|---|
String | Text of the button that is clicked by the user. |
Examples:
// The code below will display "hello world" in a dialogbox
Browser.msgBox("hello world");
method inputBox(prompt)
Pops up a dialog box with a text input box in the user's browser.
Arguments:
| Name | Type | Description |
|---|---|---|
| prompt | String | text to be displayed in the dialog box |
Return Values:
| Type | Description |
|---|---|
String | Text entered by the user. |
Examples:
// The code below will return the user's input
var name = Browser.inputBox("Enter your name");
Комментариев нет:
Отправить комментарий