javascript - Custom link on embedded youtube video -
I look forward to directing url to channel webpage instead of video URL. I have read the API and I did not find any way to achieve this. I tried to attach an embedded video in one and I added this code:
$ ('# youtube'). Click (function () {document.write ('http://www.youtube .com / user / 0plus1'); return back;});
And surprisingly it will not work.
How can I do this if it is possible?
The document will not do anything written. If you want to redirect, you should write
$ ('# youtube'). (Function () (window.location.href = 'http://www.youtube.com/username/trasportareoggi'; // or you can use window. Location ('http://www.youtube.com / User / trasportareoggi '); return false;});
Comments
Post a Comment