# Javascript

**URL:** <https://forum.infinityfree.com/t/javascript/41975>\
**Category:** Hosting Support\
**Created:** [February 21, 2021, 12:34am UTC](https://forum.infinityfree.com/t/javascript/41975 "2021-02-21T00:34:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon55442300](https://forum.infinityfree.com/letter_avatar/anon55442300/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon55442300](https://forum.infinityfree.com/u/anon55442300)\
**Post date:** [February 21, 2021, 12:34am UTC](https://forum.infinityfree.com/t/javascript/41975/1 "2021-02-21T00:34:11Z")

</div>

is there JS on the Free plan and if there is how do i active it?

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [February 21, 2021, 3:16am UTC](https://forum.infinityfree.com/t/javascript/41975/2 "2021-02-21T03:16:11Z")

</div>

JS is running from browser.  
Just make sure you have valid js on your host.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 21, 2021, 2:02pm UTC](https://forum.infinityfree.com/t/javascript/41975/3 "2021-02-21T14:02:29Z")

</div>

Javascript in the browser can be hosted basically anywhere. It’s run in the browser, so doesn’t really have any dependency on the host.

Server side Javascript (commonly referred to as Node.js) is also a thing, but not something that we offer on free hosting. On free hosting, we only support the PHP programming language.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [February 23, 2021, 6:51am UTC](https://forum.infinityfree.com/t/javascript/41975/4 "2021-02-23T06:51:01Z")

</div>

> [@Admin](#):
>
> It’s run in the browser, so doesn’t really have any dependency on the host.

Hmm, I had JS running elsewhere and faced CORS restriction. Maybe this is the exception?

---

<div class="post-metadata">

**Author:** ![anon19508339](https://forum.infinityfree.com/letter_avatar/anon19508339/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon19508339](https://forum.infinityfree.com/u/anon19508339)\
**Post date:** [February 23, 2021, 7:12am UTC](https://forum.infinityfree.com/t/javascript/41975/5 "2021-02-23T07:12:46Z")

</div>

He meant that javascript on browser cannot run by the server but the browser. So the server cannot restrict the .js code from execution but… By CORS restriction if you are sending a request to **the server itself** , It is in server’s side to whatever block request-callback from browsers/devices (regardless whatever it is javascript, python, etc) or not.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 23, 2021, 10:47am UTC](https://forum.infinityfree.com/t/javascript/41975/6 "2021-02-23T10:47:51Z")

</div>

> [@KangJL](#):
>
> Hmm, I had JS running elsewhere and faced CORS restriction. Maybe this is the exception?

You can use Javascript on a website hosted with us. But you can’t use Javascript hosted with us on another website due to the browser validation system / CORS restrictions. And you can’t use Javascript hosted elsewhere on a website here if that other website doesn’t allow CORS.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [February 23, 2021, 11:34am UTC](https://forum.infinityfree.com/t/javascript/41975/7 "2021-02-23T11:34:58Z")

</div>

Thanks for the clarification!

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [March 10, 2021, 11:35am UTC](https://forum.infinityfree.com/t/javascript/41975/8 "2021-03-10T11:35:09Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
