Running the code

The following code example pops up an alert in the web browser and displays the text that is entered when the “Submit” button is clicked. Press the “Run” button to start the widget below.

Get hands-on with 1200+ tech skills courses.