answersLogoWhite

0

Create an HTML page which pops up an alert message?

Updated: 8/16/2019
User Avatar

Wiki User

13y ago

Best Answer

<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>

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Create an HTML page which pops up an alert message?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you create our own page by using HTML page structure?

You can create your HTML page easily by using tags. Tags are the elements by writing them, you can create your views.


How do you create a static page in HTML?

A static page can be easily created in HTML page. It just needs the static tags defined in HTML.


Difference between HTML and dhtml - point wise?

Dynamic HTML is basically using HTML and some other things to enhance it, usually Javascript and Styles. All HTML really does is format your page. To get your page to do things, you need more than just plain HTML. The following code will create a button that you can click on and it will pop up a message. It uses Javascript. Copy and paste it or type it exactly as it is into your code and it will work.The onClick="alert('Hello');" piece is Javascript. Without it you would still have the button, but when it was clicked, it would not do anything. The Javascript makes your page come alive as it were. That is the idea of Dynamic HTML.


What is the function of the HTML in wed page?

The function of HTML is to create a layout in Web page. It constructs the design of the page smoothly.


How do you create new different webpage?

You can create a new web page by creating a new HTML file. Each HTML corresponds to a web page.


Is HTML a url?

HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.HTML is a language used to create web pages. A URL is the address of the page or another internet resource. So HTML and URL are not the same kind of thing. It is the address of a html page that would be a URL, but not HTML itself.


What type of pages are created with the help of HTML?

You can create any type of pages using HTML because html is a language used to create web pages for display in browser. And you can also create a static page by using HTML.


How do you create a web by yourself?

You can create a webpage by yourself. All you have to do is create a web page by HTML.


Create a HTML page to display the information of student details?

student details example by html


What is an HTML webpage?

An HTML webpage is a collection of HTML tags. The tags are arranged in a proper way to create a web page.


What is embedding java script?

To embed JavaScript code is to include it in the HTML page. For example, this will embed the code to display an alert: &lt;script type="text/javascript"&gt; alert("Embedded alert!"); &lt;/script&gt;


Could HTML show a calendar?

you could create a calendar with a spreadsheet and save it as HTML and then embed it into the page