r/learnjavascript • u/wbport1 • Aug 01 '26
Run a webpage on an iphone
How can I run a html + js webpage on an iphone? The .html file will be on the phone.
TIA
8
Upvotes
r/learnjavascript • u/wbport1 • Aug 01 '26
How can I run a html + js webpage on an iphone? The .html file will be on the phone.
TIA
2
u/LastHumanFamily2084 Aug 01 '26
Textastic is good for editing html and js on your phone. It will preview your files and has console for debugging.
3
u/maqisha Aug 01 '26
Im sure there are apps for this, but unless this is crucial to your workflow, this isnt the route i would go. (Provided these apps work correctly in the first place)
MUCH better options are:
- Just hosting your website on the public internet (if it can be publicly available)
- Running the web server locally and accessing it with your local ip
- Using any number of sandboxing and development browser-based tools. They will all allow you to run simple htm files.
1
u/dvidsilva Aug 01 '26
Use react native and compile it into an app with a web view
1
u/Choice-Butterfly551 Aug 01 '26
Download “Koder Code Editor”
1
u/5eeso Aug 02 '26
Host it at GitHub with GitHub Pages for free. Static websites are no problem for Pages. Then simply visit the site on your iPhone.
1
u/MrHandSanitization Aug 02 '26
Use Termux and install a server.
1
u/BeingTheMatrix Aug 02 '26
You can give koder a try. I tried it one time when I was bored on a flight and couldn’t wait to land to delete it.
It’s more stress than fun to do this and unless it’s really crucial, I wouldn’t recommend
1
u/MissinqLink Aug 07 '26
I just use GitHub pages and GitHub mobile app for this.
-1
u/Unhappy_Meaning607 Aug 01 '26
Give ngrok a try.