# Window.location not available

**URL:** https://forum.makecode.com/t/window-location-not-available/11023
**Category:** Help
**Created:** [November 22, 2021, 4:37pm UTC](https://forum.makecode.com/t/window-location-not-available/11023 "2021-11-22T16:37:26Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [November 30, 2021, 5:53pm UTC](https://forum.makecode.com/t/window-location-not-available/11023/8 "2021-11-30T17:53:47Z")

</div>

MakeCode Arcade does not allow you to access browser APIs like window.location so opening an external website automatically is not possible. This is mostly to prevent bad actors from writing games that open up malicious websites.

As for qr codes, there’s an extension for that: [QR Code extension](https://forum.makecode.com/t/qr-code-extension/1601)

---

_[View the full topic](https://forum.makecode.com/t/window-location-not-available/11023)._
