Skip to Content
author's profile photo Former Member
Former Member

Pop up notification on checking browser version

Hi All,

We have got a requirement to notify users who are using IE11 browser to access BSP application.

Currently, clicking on a portal link takes us to the BSP page but the application is giving issues further for IE11 users.

So we want to notify users before hand that this is not going to work for IE11 and they can use lower broswer to do their work.

So, there would be following things which we need to achieve:

1. Check the browser version

2. If browser version is IE11, give notification pop up/window with the message written on it.

3. Clicking on OK should take the user out of the BSP application and back to portal page.

I am new to BSPs. I just know that this needs to be done in JS but have no idea how to do it.

Please guide me through this. Any pointers will be helpful.

Thanks

Natasha Garg

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2014 at 02:26 AM

    Hello Natasha,

    I found following script code for IE11.

    function chk_browser( ){

    var Browser = {

    chk : navigator.userAgent.toLowerCase()

    }

    Browser = {

    ie9 : Browser.chk.indexOf('trident/5.0') != -1,

    ie10 : Browser.chk.indexOf('trident/6.0') != -1,

    ie11 : Browser.chk.indexOf('trident/7.0"') != -1,

    ie : Browser.chk.indexOf('msie') != -1,

    opera : !!window.opera,

    safari : Browser.chk.indexOf('safari') != -1,

    safari3 : Browser.chk.indexOf('applewebkir/5') != -1,

    mac : Browser.chk.indexOf('mac') != -1,

    chrome : Browser.chk.indexOf('chrome') != -1,

    firefox : Browser.chk.indexOf('firefox') != -1

    }

    if ( Browser.ie10 ) {

    alert('ie10');

    }

    else if(Browser.ie9) {

    alert( 'ie9' );

    }

    else if(Browser.ie11) {

    alert( 'ie11' );

    }

    else if(Browser.chrome) {

    alert( 'chrome' );

    }

    else if(Browser.firefox) {

    alert( 'fierfox' );

    }

    else if(Browser.ie) {

    alert( 'ie<9' );

    }

    else {

    alert( 'Unknown' );

    }

    }

    Best regards,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.