• Resolved donpro

    (@donpro)


    Hi,

    I added a JS code snippet but instead of running, it just displays as text. The GAQ states:

    Please make sure to enclose your script within script tags – <> Insert Script Here <>.

    Can you explain what this means with an example? My code snippet is:

    $(“#video-id”).on(“ended”, function() {
    window.location.href = ‘https://www.osvp.ca&#8217;;
    });

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support 99robotsteam

    (@99robotsteam)

    Hi @donpro – Your your JS code needs to be between the <script></script> tag. So itt should be the following:

    <script>
    $(“#video-id”).on(“ended”, function() {
    window.location.href = ‘https://www.osvp.ca’;
    });
    </script>

Viewing 1 replies (of 1 total)
  • The topic ‘Not working but displayng instead’ is closed to new replies.