-1

I have a html page open in a chromewindow. The html page contains some hyperlinks. When user clicks on the hyperlink i want it to open in a new chrome window in full screen mode. please help how to achive it. I tried different JavaScript code and chrome extension but it is giving me error in console like.

Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.

Piyush Aggarwal
  • 215
  • 3
  • 12
  • [see this question](https://stackoverflow.com/questions/172748/how-to-show-fullscreen-popup-window-in-javascript) – Kevin Kloet Sep 28 '17 at 08:28
  • Possible duplicate of [How to show fullscreen popup window in javascript?](https://stackoverflow.com/questions/172748/how-to-show-fullscreen-popup-window-in-javascript) – Tomm Sep 28 '17 at 08:29
  • Well, you can't. The error message is pretty self-explanatory. – wOxxOm Sep 28 '17 at 10:03

1 Answers1

-3

You can do it like this in below code to force the browser to open a new window instead of new tab

window.open('page.php', '', 'width=1000');
Suvethan Nantha
  • 2,404
  • 16
  • 28