Hi everyone! Please, I tried linking up my javascript to my html file using a sublime text editor. I am actually working on a e-commerce website using the frameworks if html, css, and javascript.
Help me guys.
Hi everyone! Please, I tried linking up my javascript to my html file using a sublime text editor. I am actually working on a e-commerce website using the frameworks if html, css, and javascript.
Help me guys.
It should be as simple as linking to it. If that doesn't work, then your link to the javascript is incorrect.
<script src="myscripts.js"></script>
If you have more info on your file structure (where the html you're writing and js you're linking to are located) it might be easier to help. For example if you're working in index.html in the diagram below, the link would be <script src="js/myscripts.js"></script>
yoursite/
├── css/
│ └── styles.css
├── js/
│ └── myscripts.js
└─ index.html