A popup is a small window or overlay that appears above a webpage to display information or provide an action. It can be used for announcements, newsletter signups, offers, contact forms or other specific purposes.
1. Decide what the popup is for
Give the popup one clear purpose. For example:
Newsletter signup
Important announcement
Contact form
Event registration
Limited-time information
Avoid putting several unrelated actions into one popup.
2. Choose how to create it
You can add a popup using:
A built-in popup feature in your website builder
A third-party popup tool
Custom HTML, CSS and JavaScript
For most websites, a built-in feature or established plugin is simpler than creating the functionality from scratch.
3. Create the popup content
Keep the content short and make the required action clear. Include a visible Close button so visitors can dismiss the popup easily.
If the popup contains a form, clearly label its fields and explain what happens after submission.
4. Set when it appears
Configure an appropriate trigger, such as when a visitor selects a button or when a page loads.
If using automatic popups, avoid showing them immediately or repeatedly in a way that interferes with the visitor’s ability to read or use the page.
5. Check mobile and accessibility
Make sure the popup fits smaller screens and does not cover essential content or controls.
Visitors should be able to close it using a clearly visible control and, where applicable, the keyboard. The popup should also manage keyboard focus appropriately so users of assistive technologies can interact with it.

Salesforce

