Computer Science, asked by Anonymous, 9 months ago

ho w to display alert using javascript

Answers

Answered by dhareaveer
4

\huge\color{Blue}\mathfrak{Answer:}

Use alert function to display a popup message to the user. This popup will have OK button to close the popup.

The alert function can display message of any data type e.g. string, number, boolean etc. There is no need to convert a message to string type.

Sometimes you need to take the user's confirmation to proceed. For example, you want to take user's confirmation before saving updated data or deleting existing data. In this scenario, use JavaScript built-in function confirm(). The confirm() function displays a popup message to the user with two buttons, OK and Cancel. You can check which button the user has clicked and proceed accordingly.

The following example demonstrates how to display a confirm box and then checks which button the user has clicked.

Hope it helps ✌️

<marquee>Please mark me brainliest and Follow me</marquee>

Attachments:

Anonymous: bro u have copied this
dhareaveer: Ya, Because I haven't did this thing ( your question) and I have copied only for help you. Becaue I think everyone want answers and they also need help.
Anonymous: U KNOW JAVASCRIPT
Answered by raynanndini
2

Answer:

Use alert() function to display a popup message to the user. This popup will have OK button to close the popup. The alert function can display message of any data type e.g. string, number, boolean etc. There is no need to convert a message to string type.

I hope you like it

Stay home and stay safe

Hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii please mark me as brainlist

Explanation:

Similar questions