answersLogoWhite

0


Best Answer

Type the following in notepad and save it as index.html , save as type all files.

Modify the contents of alert("") to your needs.


Put the below code in your html head tag and the page would show alert box on load

User Avatar

Kamryn Pfannerstill

Lvl 10
2y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write ''hello world''' in an alert box?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about TV & Celebs
Related questions

What is an Alert in JavaScript?

A JavaScript Alert, called by using the alert(msg); function, creates a dialog window in front of the browser that displays some sort of message (msg) and an OK button. The user much click the OK button in order to do anything else on that page.Additional:alert("Hello World!"); //simply an alert msg with ok buttonconfirm("Are you sure you want to quit?"); // it is a confirmation box with ok and cancel buttonprompt("Enter Your name."); //this one will let you enter something in a box.


Which function can be used to create an Alert popup dialog box. Write an example to create an Alert popup box?

Here's the code: <html> <head> <script type="text/javascript"> function callMe() { alert("Alert Box is called on body load"); } </script> </head> <body onload="javascript:callMe()"> <h1 align="center">Content here</h1> </body> </html>


Name of dialog box?

The most common type of dialog box is the "alert".


Create an HTML page which pops up an alert message?

<html> <head> <script type="text/javascript"> function show_alert() { alert("I am an alert box!"); } </script> </head> <body> <input type="button" onclick="show_alert()" value="Show alert box" /> </body> </html>


Is red alert 3 on PlayStation?

it's on ps3, x-box 360, and pc. Red alert is it not for ps2 or ps1


What are different dialog boxes in JavaScript?

There are three Types of Dialog Boxes in JavaScript1. alert() : The simplest to direct output to a dialog box is to use the alert() method. The alert dialog box is used to display an alert message to the user.2. prompt() : The prompt() method dialog box allows the user the opportunity to enter information. It takes two parameters; a message and a default string for the text entry field.3. confirm() : The confirm dialog box returns a Boolean value based on the user's selection.


How can you write a messageDlg?

I think the following javascript code will help u : just chek n try it once <html> <head> </head> <body> <form> <input type="button" onclick="disp_alert()" value="Display alert box"> </form> </body> </html> Output is like this : A button will display n by clicking on it u wil get an alert box. All the best


Can box turtles eat a fly?

hello it is me die


How do you get the popup javascript box?

Use confirm or alert in javascript code to get a popup


How do you write an auto message on MSN Plus?

What you do is: go onto messenger where it says where you are online or out to lunch and click on away, then in the biggest box write where you are going or why you are gonna be away! Then, when you are away it will say 2 the people when they say hello, that you are ________________ (whatever you are doing)!


How do you write an auto-message on MSN Plus?

What you do is: go onto messenger where it says where you are online or out to lunch and click on away, then in the biggest box write where you are going or why you are gonna be away! Then, when you are away it will say 2 the people when they say hello, that you are ________________ (whatever you are doing)!


What are the release dates for Outside the Box - 2011 Hello Dali 1-3?

Outside the Box - 2011 Hello Dali 1-3 was released on: USA: 10 December 2011