---
title: "how to hide html5 player for iPad on done button click"  
description: "how to hide html5 player for iPad on done button click"  
author: "Anonymous User"  
published: 2013-06-04  
updated: 2013-06-05  
canonical: https://www.mindstick.com/forum/981/how-to-hide-html5-player-for-ipad-on-done-button-click  
category: "iphone"  
tags: ["iphone"]  
reading_time: 1 minute  

---

# how to hide html5 player for iPad on done button click

Hi Everyone,\
I am playing [video](https://www.mindstick.com/articles/290133/6-necessary-preparations-you-need-before-editing-a-video) in iPad it is [working fine](https://answers.mindstick.com/qa/95550/why-is-the-safari-browser-not-working-fine) but I want that when [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) enter done [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net), [player](https://answers.mindstick.com/qa/62213/name-the-cricketer-who-was-named-as-the-player-of-the-tournament-in-cricket-world-cup-2019) should close.Any idea how to do this. I'm [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) as following\

```
<!DOCTYPE html><head><meta charset=”utf-8?><meta name=”apple-mobile-web-app-capable” content=”yes” /><title>My Video</title><link rel=”apple-touch-icon” href=”icon.png” /><style>body {margin:0;}</style></head><body><video width=”1024? height=”750? controls=”true”><source src=”videos/test.m4v” /></video></body></html>
```

\
Thanks in advance.

## Replies

### Reply by AVADHESH PATEL

Hi Brad,\
You can try as following\

```
<!DOCTYPE html><head><meta charset=”utf-8?><meta name=”apple-mobile-web-app-capable” content=”yes” /><title>My Video</title><link rel=”apple-touch-icon” href=”icon.png” /><script>  function onClickDone(){  document.getElementById('myvideotag').pause();  document.getElementById('myvideotag').style.display = "none";}</script><style>body {margin:0;}</style></head><body><button onclick="onClickDone()">Done</button><video id="myvideotag" width=”1024? height=”750? controls=”true”><source src=”videos/test.m4v” /></video></body></html>
```

**\**Thanks in advance.


---

Original Source: https://www.mindstick.com/forum/981/how-to-hide-html5-player-for-ipad-on-done-button-click

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
