Under review
Joshua Geddes 3 years ago • updated by Alexander Blach (Developer) 3 months ago 3
I was wondering how to run HTML and JavaScript? I think you can in the app but I am just wondering how to do it? Thanks.
Under review

to preview HTML and JavaScript, open the HTML file and tap on the "glasses" button in the top right corner.

I was using only javascript, and trying to console.log() something and does not work, I don't see anything in the javascript console?
I also don't know how to reference a javascript file and my CSS file in my html file with textastic.



to reference a JavaScript file from a HTML file, insert a tag like this:

<script src="file.js"></script>

You can reference a CSS file like this:

<link rel="stylesheet" type="text/css" href="style.css">

I hope this helps.