JSFiddle - React, Tailwind, and code Playground

by Abhisek DasGupta

HTML

<!DOCTYPE html>
<html>
<body>

<p>Click the button to open the url in a new browser window</p>

<button onclick="myFunction()">Click Me</button>

</body>
</html>

JavaScript

const s = window.screen;
const url = "http://learningspace.cisco.com";

/* const windowFeatures = 'menubar=no,toolbar=no,location=no,status=no,resizable,width='+s.width+',height='+s.height+'left='+s.width+',screenX='+s.width+',top=0,screenY=0'; */

/* const windowFeatures = 'width=' + screen.availWidth + ',height=' + screen.availHeight + ',top=0, left=0'; */

/* const windowFeatures = 'width=' + s.width + ',height=' + s.width + ',top=0, left=0'; */


function myFunction() {
  let _presenterViewWindow = window.open(url, 'Presenter View');
}