Simple Model Popup Box using HTML CSS and JavaScript

Today, We want to share with you Simple Model Popup Box using HTML CSS and JavaScript.In this post we will show you javascript popup window onclick example, hear for html code for popup window on page load we will give you demo and example for implement.In this post, we will learn about A Very Simple Popup Box โ€“ HTML, CSS, JavaScript with an example.

Simple Model Popup Box using HTML CSS and JavaScript

There are the Following The simple About Simple Popup or Model Box Using HTML CSS and JavaScript Full Information With Example and source code.

As I will cover this Post with live Working example to develop how to create popup in html with css, so the How To Create a Modal Popup Box with CSS and JavaScript? is used for this example is following below.

The HTML Code


<a class="alert_model_popup_click">Click here to show the Model Popup</a>
<div class="backg_smooth_scrol">
<div class="removeHideBtnModel">ร—</div>
Add any Angularjs Vuejs or any tags for HTML Data content
inside the Model popup box!


The CSS Code

Pure added CSS

.backg_smooth_scrol .helper{
.backg_smooth_scrol > div {
background-color: #fff;
box-shadow: 10px 10px 60px #555;
display: inline-block;
height: auto;
max-width: 551px;
min-height: 100px;
vertical-align: middle;
width: 60%;
position: relative;
border-radius: 8px;
padding: 15px 5%;
.removeHideBtnModel {
background-color: #fff;
border: 3px solid #999;
border-radius: 50px;
cursor: pointer;
display: inline-block;
font-family: arial;
font-weight: bold;
position: absolute;
top: -20px;
right: -20px;
font-size: 25px;
line-height: 30px;
width: 30px;
height: 30px;
text-align: center;
.removeHideBtnModel:hover {
background-color: #ccc;
.alert_model_popup_click {
cursor: pointer;
font-size: 20px;
margin: 20px;
display: inline-block;
font-weight: bold;

The Script

using jquery Example

$(window).load(function () {

Web Programming Tutorials Example with Demo

Read :


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about javascript popup window onclick.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, donโ€™t forget to share.