Search
Setup for Free
CD
Cloudflare Developers
•
13mo ago
sakty
how do i call js file from html file?
i tried to call js script from local to html file
, but it is not loaded why
?
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,421
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
S
sakty
i tried to call js script from local to html file, but it is not loaded why?
C
Cyb3r-Jak3
•
12/28/24, 5:55 AM
Yeah that isn
't going to work
. HTML can
't import javascript
, it will just tell to browser to make a requests to get the javascript file
.
C
Cyb3r-Jak3
•
12/28/24, 5:55 AM
This seems more like you want Pages than workers
C
Cyb3r-Jak3
This seems more like you want Pages than workers
S
sakty
OP
•
12/28/24, 5:58 AM
what do you mean by page
?
S
sakty
what do you mean by page?
C
Cyb3r-Jak3
•
12/28/24, 6:02 AM
Cloudflare
's website hosting
:
https://developers.cloudflare.com/pages/
Cloudflare Docs
Cloudflare Pages documentation · Cloudflare Pages docs
Deploy your Pages project by connecting to your Git provider
, uploading prebuilt assets directly to Pages with Direct Upload or using C3 from the command line
.
C
Cyb3r-Jak3
Cloudflare's website hosting: https://developers.cloudflare.com/pages/
S
sakty
OP
•
12/28/24, 6:03 AM
what
's the difference with worker
S
sakty
what's the difference with worker
C
Cyb3r-Jak3
•
12/28/24, 6:11 AM
Pages is built to handle websites
C
Cyb3r-Jak3
Pages is built to handle websites
S
sakty
OP
•
12/28/24, 6:22 AM
ah so it can import the function in html file
?
Similar Threads
How do i call CF LB from pages?
CD
Cloudflare Developers / pages-help
3y ago
Index.js loads a html file in deployment
CD
Cloudflare Developers / pages-help
14mo ago
How do I return a HTML? Hono ts
CD
Cloudflare Developers / workers-and-pages-help
2y ago
How do I disable beacon.min.js?
CD
Cloudflare Developers / general-help
2y ago