Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6381549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:24:31+00:00 2026-05-25T02:24:31+00:00

I am autoplaying an html5 in a web app running in a UIWebView browser.

  • 0

I am autoplaying an html5 in a web app running in a UIWebView browser. I would like for the user to be able to touch the screen and be redirected to a new page. Since the video is autoplayed, I am able to omit the controls altogether (and that part is all working just fine). Is this redirection possible?

So far I have tried:

adding a link around the video tags
<a href="http://www.example.com"><video type='video/mp4' id="myVideo" width="800" height="568" src="video1.ipad.mp4" autoplay></video></a>

adding an onClick event to the video tag itself
<video type='video/mp4' id="myVideo" width="800" height="568" src="video1.ipad.mp4" onClick="document.location.href='http://www.example.com';" autoplay></video>

adding a div around the video with an onClick event (and then when that didn’t work, increasing the div’s z-index to make sure it was on top of the video)
<div onclick="location.href='http://www.example.com';" style="cursor:pointer; z-index:10;"><video type='video/mp4' id="myVideo" width="800" height="568" src="video1.ipad.mp4" autoplay></video></div>

any ideas would be much appreciated…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:24:32+00:00Added an answer on May 25, 2026 at 2:24 am

    I happened to find something that worked today while working on another project! I thought I would post it here in case anyone else needs this functionality.

    Basically, I created a link surrounding a transparent div that is the full size of the screen and sits on top of everything else via z-index.

    <style>.videocontainer { position:absolute; width:1024px; height:768px; z-index:10000; }</style>
    
    <a href="index.html"><div class="videocontainer"></div></a>
    <video id="myVideo" width="1024" height="768" src="video/video1.ipad.mp4" autoplay></video>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a little system dashboard web app that I've written, replete with alarm
We would like to display flash video files (tutorials) on our Sharepoint site. Problem
Is someone able to assist in helping understand how to get this C# example
I'm trying to use YouTube API to upload videos from browser. I read Google
This keeps autoplaying even when I set it to false 3 times. I don't
I'm trying to use sencha touch's listpaging plugin. But there is almost no good(
So I feel like this is kind of a hard question to ask correctly,
At this URL I have HTML5 video and audio elements both set to autoplay
I am trying to do a very minimalistic sample of borderless video using swfobject
I have three files 1. index.htm 2. autoplay.exe (I have written this to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.