这是我的javascript代码我希望链接应该在新标签中打开但是没有发生我怎么能这样做呢?
<link href="http://vjs.zencdn.net/5.4.6/video-js.min.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/5.4.6/video.min.js"></script>
<a href='inmedia.co.in' target='_blank'>
<video id='videojs-w0' class='video-js vjs-default-skin vjs-big-play-centered' width='640' height='264' poster='http://www.inmedia.co.in/platform/inmedia/frontend/web/screenimages/advertiser1 1.png' data-setup='{ "controls": true, "autoplay": true, "preload": "auto", "inactivityTimeout": 0, "controlBar": { "volumeMenuButton": true, "playToggle": false, "progressControl":false,"BigPlayButton": true } }'>
<source type='video/mp4' src='http://www.inmedia.co.in/platform/inmedia/frontend/web/uploadvideos/advertiser1 1.webm'>
<track src="http://vjs.zencdn.net/vtt/captions.vtt" kind="captions" srclang="en" label="English">
</video>
</a>
<script> var uid='181'; var aid='88'; var pid='178';
</script>
<script src="http://www.inmedia.co.in/platform/inmedia/frontend/web/scripts/js/ivctrack.js">
</script>
我正在尝试将视频元素包含在href标记中,此代码是使用php生成的
答案 0 :(得分:-2)
更改此
<link href="
到此,
<link target="_blank" href="
希望这有助于:)