Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Add JavaScript to existing Youtube video webpart

$
0
0

Hi;

I have a webpart for embedded youtube which is a simple script like below but I found that when I hover to the video in site, I can right click on Video and some function show up like "Copy Video URL...", I want to disable the right click function on this video.  I did some rearch and found that I can use JavaScript on website to disable the right click but most of the research I found from internet which is to show me to do it on a new webpart.  Is it possible to append the JavaScript onto the same file which hosting the original embedded video below?

<iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/<my video link here>?modestbranding=1&amp;showinfo=0&amp;controls=0&amp;rel=0" frameborder="0" allowfullscreen></iframe>

The reason I need to add Javascript is try to disable the right click function on video clip.


Viewing all articles
Browse latest Browse all 11508

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>