Pop-ups for the site
How to create a pop-up window on the site
Creation, development, manufacturing sites | WEB-STYDIA.COM

When we already wrote about pop-up window at the entrance to the site, and today we want write another note about pop-up windows on the site, and consider the option of pop-ups when clicking on a button or link.

In this example, when creating a pop-up window, we will use the html, css, and js markup. A pop-up window will appear when clicking on a link or button, and close when clicking on a special text or click outside the window.

In general, pop-up windows on the site or as they are called popup window or pop-up modal window are very useful and allow you to display in them a wide variety of information, for example, they can display the subscription form or order form, or just some additional information to which then the element on the site.

Using pop-ups on the site is also very convenient and quick to increase the number of subscribers. For example, if a well-promoted site brought in a day 10-15 subscribers with some kind of inconspicuous form of subscription that was placed somewhere on the site, then when you connect a pop-up window, this amount can immediately be multiplied by 100, 200 and sometimes more percent.

At development of sites I very often customers ask how to create a pop-up window, so I decided to write here a short article on about this, well, plus make yourself a short note.

What are the advantages of pop-ups?

  • The main purpose of the pop-up window is to attract the attention of your visitor. When you visit your site, the user immediately sees a pop-up modal window, which provides some sort of yummy, that is, some useful information that you are offering emu.
  • Practice shows that the use of pop-ups has a positive effect on the conversion of the site. This allows you to increase traffic to the site and the number of views. You can significantly improve the result, get more sales, or subscribers than from the usual static block.
  • A pop-up window allows you to create a quick client feedback with you if you place the contact form in it. Or you can post there answers to some popular questions from clients that allow your visitor to decide to contact you faster.


Disadvantages of pop-ups?

There are, of course, also disadvantages from modal pop-ups, the list of the main shortcomings will be considered below:

  • Many users are annoyed with pop-ups, and they leave your site without even acquiring basic information, thereby reducing the attendance of your resource. Therefore, try to make pop-ups not intrusive, and it is recommended that they appear with a delay in time. Just make them neat and convenient, for example, you do not need to make a window on the entire page of the site, otherwise the user simply does not find the right closing button, and most likely will go to your competitor.
  • It is also not recommended to hang a lot of various pop-ups on the site as this can be regarded as spam, as a result of which the reputation of your Internet resource can drop dramatically. Be sure to take this fact into account.
  • There are a lot of ad blockers that are installed in the user's browser, in this case your visitor will not see your advertisement. But not everyone uses these plug-ins and extensions for this much to be upset, but still some percentage is eliminated.

Well, that's all the basic facts about using pop-ups on the site.

Now let's get down to the most pop-up window. Let me remind you once again we make a pop-up window for buttons and links, that is, a window that will appear only when clicking.

First you need to check if you have a jQuery library connected, if not, then you need to connect it, for example:

Add this code somewhere between <head> ...</head>, if your jQuery library is already connected, you do not need to connect it a second time.

An example of how this window will look like in the photo below:

Or see a live example, you can on our site:


And so, to create a pop-up window, we create the simplest html markup:
After we add the JS code to the page. or we connect it in a separate file:
Well, the last point is the css styles for the pop-up window:
Well, that's all we needed to create a simple modal window when clicking.

Try it and you will succeed, good luck in our not easy business. :)

You may also like

No Comment

You can post first response comment.

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter a message.