Using Javascript?

User 2743345 Photo


Registered User
4 posts

Is it possible to add a Javascript page in the editor so that I can have all of my scripts separate from my HTML code? I tried adding one but my scripts don't seem to be showing up? I am just now starting to learn JS, but I know for a fact it is linked correctly.
User 187934 Photo


Senior Advisor
20,181 posts

Hi Logan,
Yes, you can make .js pages and link them to your html pages.
Make sure the .js page is in the proper location and that the .js link points to that location within your site.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 271657 Photo


Ambassador
3,816 posts

You can also create a folder for all your JS – call it js and link to that folder.
Are you previewing the site live or just by local preview? Better to test it live to see the JS.
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.