• Hello everybody,

    I am an administrator of website with embedded videos.
    I want to do this:
    When user clicks on embedded video, I want to be redirected to a website where video is embedded from in a new tab or window.

    Can anyone help me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • try to read this steps by steps procedure that will help you. .https://help.surveygizmo.com/help/article/link/redirect-to-a-website

    Moderator bcworkz

    (@bcworkz)

    @vince0190 – thanks for the link, but those steps appear to only apply to survey gizmo users.

    @dtutahey – it’s a tricky task if you want this to work for any embedded video from any service inserted by various people. There’s several ways to embed. Some embed codes offer an option to redirect to the host site, but you can’t count on users setting that option, and it’ll probably open in the same window anyway.

    Your best bet is jQuery. You may need a few different scripts to account for different embed types. Examine some embeds to determine the proper jQuery selectors. The script runs on the .click event. It needs to extract the video src URL from the embed code and open it in a new window. Use .preventDefault() to prevent the embed from playing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘redirection when user clicks on video’ is closed to new replies.