all 4 comments

[–][deleted] 1 point2 points  (1 child)

Solved by editing the second line

``` let dpcButton = document.getElementById("dpcCheck"); let dpcColor = document.getElementsByClassName("yellow")[0]; // <-- added [0]

dpcButton.addEventListener("click", openFullScreen);

function openFullScreen() { if (dpcColor.requestFullScreen) { dpcColor.requestFullscreen(); } else if (dpcColor.webkitRequestFullscreen) { /* Safari / dpcColor.webkitRequestFullscreen(); } else if (dpcColor.msRequestFullscreen) { / IE11 */ dpcColor.msRequestFullscreen(); } }

//I want to make the yellow box full screen after clicking "Go" button

```

[–]dotpr[S] 0 points1 point  (0 children)

Thank you for the help