Skip to main content
Known Participant
May 26, 2015
Question

Detect browser version write to variable

  • May 26, 2015
  • 1 reply
  • 257 views

Good morning,

I was wondering if anyone knew if this was possible in Captivate 8?

My issue is I have an Edge interactive animation in a project that works great in IE10 and above but not in 9. For the minority of users that still have 9 in the company I would like to create a different version of the animation and have Captivate redirect them to that.

I was thinking maybe some script that could write to a variable?

Any ideas appreciated.

Ryan

    This topic has been closed for replies.

    1 reply

    TLCMediaDesign
    Inspiring
    May 26, 2015

    I assume this is html5?

    Drop this in the head section of the html page:

    <script>

    function checkIEVersion()

    {

    if ( document.documentMode == 9 )

    {

      //set Captivate Variable

      window.yourVariable = "some value";

    }

    }

    </script>

    Then in Captivate call JavaScript:

    checkIEVersion();

    RyanSteerAuthor
    Known Participant
    May 26, 2015

    Brilliant, thank you. I will give that a try.