computer






 

Question by  sweetmomu (19)

Is there a better Javascript alert box?

 
+7

Answer by  ihavenomouth (26)

No, there isn't a better Javascript alert box. But you can use one of those Ajax Framework in order to create a div in your HTML page with buttons.

 
+7

Answer by  worker3086 (25)

In javascript to give an alert to the user you can use several types of windows depending on your liking. Using confirm boxes can often substitute an alert box, and gives the user a selection (true/false). For simple messages like giving the user information, an alert box is often enough.

 
+6

Answer by  roberta (45)

There is another type of Javascript alert box called an InputBox, which is a bar of text, and underneath that there is a textbox that the user can type in. To use it, use a=InputBox("title"). This would store the info in the variable 'a'.

 
+5

Answer by  odp85 (52)

The look and feel of the default alert box is usually part of the operating system the browser runs on. In any case you cannot change this. Depending on your setup you can use JavaScript framework packages that simulate alert boxes in HTML, i.e. that generate HTML elements that look like alert boxes.

 
+3

Answer by  brilliance (54)

An almost infinite number of potential Javascript alert boxes are available--according to the website Javascript Kit, any one of three commands produces such alerts: •window.alert() •window.confirm() •window.prompt() Go to that website, and look for the section Javascript Tutorials > Creating Dialogue Boxes > Here to find the specific ways of using these commands.

 
You have 50 words left!