![]() |
![]() ![]() |
![]() |
one_button |
![]()
Post
#1
|
Group: Members Posts: 1 Joined: 21-February 24 Member No.: 29,134 ![]() |
I am trying to make a video clickable and act as a hyperlink
If I include controls as in this example CODE <a href="https://www.example.com/destination-page.html"> <video src="path/to/video.mp4" width="640" height="360" controls></video> </a> the video can play but clicking on the video only pauses playback if I remove controls, clicking on the video will open the link URL is there a way to make the link work while including controls? |
Christian J |
![]()
Post
#2
|
. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 9,686 Joined: 10-August 06 Member No.: 7 ![]() |
You might be able to place a transparent link in front of the video with CSS "position: absolute" or similar (but don't cover the video controls).
But it will likely be confusing to users if clicking on the video opens a new URL instead of the usual video interaction. |
coothead |
![]()
Post
#3
|
Advanced Member ![]() ![]() ![]() ![]() Group: Members Posts: 207 Joined: 12-January 23 From: chertsey, a small town 25 miles south west of london, england Member No.: 28,743 ![]() |
cootheasd |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 15th June 2024 - 10:20 AM |