Following is my code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<label>
Upload File:
<input type="file" />
</label>
<div onclick="requestFullScreen()">Click to FullScreen</div>
</body>
<script>
function requestFullScreen(){
document.body.requestFullscreen();
}
</script>
</html>
First I do fullScreen by click on text, after it when I click on input type="file", chrome exit full screen.
I want to prevent chrome to exit fullScreen.
How to resolve this issue.