Skip to content Skip to sidebar Skip to footer

How To Play Video In A New Tab?

I am a beginner in web development. I have a video file in my web page. I want to play that video in a new tab. I gave the target='_blank' attribute into my video tag but it's stil

Solution 1:

Do you try this way?

<!DOCTYPE html><html><body><h2>Click the Link to Play the Object</h2><ahref="http://www.w3schools.com/html/intro.swf"target="_blank">Play a video file</a></body></html>

Or you can create a blank page with following code:

<!DOCTYPE html><html><body><videowidth="90%"height="90%"controls><sourcesrc="movie.mp4"type="video/mp4"><sourcesrc="movie.ogg"type="video/ogg">
      Your browser does not support the video tag.
    </video></body></html>

And then link to that page:

<ahref="video_page"target_="blank">See the video</a>

Post a Comment for "How To Play Video In A New Tab?"