search

Home  >  Q&A  >  body text

javascript - How to play a video in a new tab after clicking a button?

I used window.open("http://statics.ddedu.com/public/ebag/video/promotional video.mp4");
But this uses the browser to play the video, the browser The support is not good, how to use H5 video to play the video in the new tab page?

过去多啦不再A梦过去多啦不再A梦2773 days ago542

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-05-16 13:31:09

    Then you can write a separate page, and the only function of that page is to play videos.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:31:09

    Add an autoplay attribute to the video tag, and turn on autoplay on the 'autoplay="autoplay"' page.

    reply
    0
  • Cancelreply