How to write code to open the Youtube app from your phone?

Good day!
need to smartphone link opened the video (it's worth forwarding on YouTube) in the mobile Youtube app. If there are such that offer to download from the store.
Interested in iOS and Android.

I point out the following page code index.html:
<meta http-equiv="refresh" content="0; url=">
<script language="javascript">
 window.location = "";

more in the code, nothing.

Thank you!
July 2nd 19 at 13:19
1 answer
July 2nd 19 at 13:21
As I understand it, the question should be referenced. But I do not see here. That is, the tag "a". On that click need to open YouTube? meta - is a meta tag, he on the page is not displayed.
Okay, this is all demagoguery.

That's how it should look. Nothing more. Although depending on what you are developing, for example, F7 tag "a" you need to have the external class to register.
In short, the phone itself will recognize which app to open the link, if the link address there is a link to a video from YouTube, it opens in the YouTube app.
Thanks, can code to reflect your comments? - Saige.Bay commented on July 2nd 19 at 13:24
And still works : if you create a thumbnail view of the picture. When you click on the picture to open in a new window. Phone or ask via open or open in the app . - Saige.Bay commented on July 2nd 19 at 13:27

Find more questions by tags JavaScriptHTMLYouTube