Alert

From codeTank

Jump to: navigation, search

Contents

Description

alert is a function used to display a simple popup window, with information, for the user. Note that alert is prefered over print in most cases. The purpose of print is to be used for debugging purposes - not for displaying information to the user.

Arguments

sh: highlight: command not found

You need to specify a language like this: <source lang="html">...</source>

Supported languages for syntax highlighting:

(error loading support language list)

alert only takes one or two arguments. It applies tostring to each argument if it isn't already a string. The first argument is the text to be displayed in the alert window. If a second argument is present, then it's used to set the title of the window. If the second argument is omitted, then the default title is "Alert".

Returns

alert doesn't return anything.

Example

sh: highlight: command not found

You need to specify a language like this: <source lang="html">...</source>

Supported languages for syntax highlighting:

(error loading support language list)

See Also

Personal tools