---
title: "Discussion on \"How to use the Fullscreen API in JavaScript\" | Hashnode"
description: "Discussion on \"How to use the Fullscreen API in JavaScript\". How do you run a game created for the web in fullscreen? In this quick tutorial, you'll see how to display a game or any other HTML element in fullscreen, how to exit fullscreen, and how to make a nice fullscreen toggle button in SVG.\nRecently I publ..."
url: "https://hashnode.com/posts/how-use-full-screen-api-in-js/66c4c81129f446a67a4197ee"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to use the Fullscreen API in JavaScript](https://freecodecamp.org/news/how-use-full-screen-api-in-js?utm_source=hashnode&utm_medium=feed)

How do you run a game created for the web in fullscreen? In this quick tutorial, you'll see how to display a game or any other HTML element in fullscreen, how to exit fullscreen, and how to make a nice fullscreen toggle button in SVG. Recently I publ...

Feb 22, 2024 · 8 min read · freecodecamp.org  
Read the article

-   [#fullscreen-api](https://hashnode.com/tag/fullscreen-api)
-   [#canvas](https://hashnode.com/tag/canvas)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#svg](https://hashnode.com/tag/svg)

## Written by

[Hunor Márton Borbély](https://hashnode.com/@hunor)

@hunor

  
[View profile](https://hashnode.com/@hunor)

Full-stack web developer, coach, posting creative coding tutorials and games on YouTube and CodePen

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
