admin管理员组

文章数量:1332865

The Browser.msgBox("hello") method lets me display the text "hello" to the user in a message box, but if I put any HTML in there, for example "Hi there", the user just sees the HTML tags.

Is there a way to display a popup with simple HTML to the user from withing google apps script?

The Browser.msgBox("hello") method lets me display the text "hello" to the user in a message box, but if I put any HTML in there, for example "Hi there", the user just sees the HTML tags.

Is there a way to display a popup with simple HTML to the user from withing google apps script?

Share Improve this question asked Apr 29, 2010 at 19:48 Jose M VidalJose M Vidal 9,1597 gold badges48 silver badges51 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

If you want to display a more plex UI, check out the new UIApp service google added:

http://code.google./googleapps/appsscript/service_ui.html

The documentation is pretty sparse, so check out their examples:

http://code.google./googleapps/appsscript/guide_user_interfaces.html

You can also directly use UI.showModalDialog.

https://developers.google./apps-script/reference/base/ui#showModalDialog(Object,String)

本文标签: javascriptDisplay HTMLformated message box in Google Apps ScriptStack Overflow