javascript - Opening a Tab only once -



javascript - Opening a Tab only once -

i have 4 static html pages created below.

home about services contact

on each page, there link, opens static page called myvideo.html plays video me on new tab.

i have kept link on each page user can open anywhere.

the problem is, when opens home page, can 1 time again open page, makes video autoplay 2 times creates bad impact.

what want is, when user has started video page , when 1 time again execute same page, should alert mentioning "the video beingness played on new tab", video plays once. can 1 time again play video on close of tab playing video.

my question is, possible ??

use target="" in link. target meant frames, when specify same target name in every link browser open new tab or window when no window name exists, , reuse existing window when exists.

<a href="/link/to/video/" target="video">link</a>

javascript php jquery html

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -