Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Js Pop Up Alert - Specific Browsers

Featured Replies

Hi all

 

I want to create a Javascript alert box that comes up when you load a web page, however, I want it to pop up only in particular browsers.

Can anyone tell me how to do this or where I can find out where this can be done.

 

Thanks very much

 

D

Hi all

 

I want to create a Javascript alert box that comes up when you load a web page, however, I want it to pop up only in particular browsers.

Can anyone tell me how to do this or where I can find out where this can be done.

 

Thanks very much

 

D

 

Welcome to the Forum.. :hi:

 

Below are the links of tutorials from W3schools regarding the above issue, its very neately explained hope this helps you.

If you have any further queries feel free to ask..

 

Here are the links

http://www.w3schools.com/js/js_browser.asp

http://www.w3schools.com/js/tryit.asp?file...=tryjs_browser2

  • Author

Subhajit

 

Thanks very much, I will go and have a look and try putting the code in so it works together. Thanks again for the help.

 

D

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.