---
title: "Discussion on \"How to Create Pop-up Boxes on the Web\" | Hashnode"
description: "Discussion on \"How to Create Pop-up Boxes on the Web\". Pop-up boxes are browsers' windows to inform, alert, or obtain input from a user. Learn how and when to create different types of pop-up boxes on the web."
url: "https://hashnode.com/posts/how-to-create-pop-up-boxes-on-the-web/6318c4d26b34d71380dab4da"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Create Pop-up Boxes on the Web](https://monioluwa.hashnode.dev/how-to-create-pop-up-boxes-on-the-web?utm_source=hashnode&utm_medium=feed)

Pop-up boxes are browsers' windows to inform, alert, or obtain input from a user. Learn how and when to create different types of pop-up boxes on the web.

Sep 7, 2022 · 5 min read · monioluwa.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Monioluwa Fasola](https://hashnode.com/@Monioluwa)

@Monioluwa · Oyo, Nigeria

  
[View profile](https://hashnode.com/@Monioluwa)

Software developer

An innovative and resourceful Software developer and Technical writer with experience in documenting Web 2.0 and Web 3.0 software systems. Her immediate goal is to build out and articulate technical solutions and curate valuable thinkpieces that add real value to the web ecosystem.

## Responses 1

Markdown supported · ⌘↵ to post

[Carlonn Rivers](https://hashnode.com/@Danidre)

[Sep 7, 2022](https://hashnode.com/posts/how-to-create-pop-up-boxes-on-the-web/6318c4d26b34d71380dab4da/comment/6319190e5abe8613b3d2f6cb)

Nice article.

Some feedback would be to review the formatting of code blocks, since the indentations and syntaxes are sometimes incorrect.

For example, instead of:

```
function webConfirm() {
         var x;
         if (confirm("Do you want to exit?") == true) {
         x = "Welcome back!";
         } else {
         x = "Bye!";
         }
         document.getElementById("exit").innerHTML = x;
         }
```

It would be:

```
function webConfirm() {
    var x;
    if (confirm("Do you want to exit?") == true) {
        x = "Welcome back!";
    } else {
        x = "Bye!";
    }
    document.getElementById("exit").innerHTML = x;
}
```

Similarly, instead of:

```
If (message === true) {
```

It would be:

```
if (message === true) {
```

[Monioluwa Fasola](https://hashnode.com/@Monioluwa)

[Sep 8, 2022](https://hashnode.com/posts/how-to-create-pop-up-boxes-on-the-web/6318c4d26b34d71380dab4da/comment/6319190e5abe8613b3d2f6cb#reply-631a09816b34d71380daeab8)

Noted. Thank you for your feedback!
