There is one video and if I click on that video it will open in a new tab. If I again click on that tab the control should navigate back to the previous tab.
You can go back to the previous window with this syntax:
window.history.go(-1)