When it comes to the design and user experience aspect, it is important not to let any pop-up on your website exceed a certain view-port limit, such as half of the window height.
One suggestion is to create a pop-up div with a fixed height and include overflow-y: scroll
, allowing users to scroll down if there is more content to read.
It is crucial to use pop-ups thoughtfully in general.
Unfortunately, negative experiences with poorly designed pop-ups have given all pop-ups a bad reputation. Some users resort to disabling JavaScript or using specialized software to block all pop-up windows.
Many take these measures out of frustration because pop-up windows seem to follow them everywhere online - often without realizing that their own actions contribute to this issue. In some cases, users unknowingly download programs that track their online activity, steal personal information, and bombard them with unwanted pop-up ads.
Refer to this, this article, and this question on Stack Overflow for more insights.