Jump to content

How would I call .js from .css?


LifeInBinary

Recommended Posts

I have a couple of scripts, such as disable right-click and disable text select - that I am putting in every page on a website. I am using an external style sheet. Couldn't I just put all of the JavaScript in an external .js file and call it from the CSS file? How would I do that?Assume the .js file name is security.js - could someone post code on how I would link to this in the CSS file?Thanks a bunch,LifeInBinary.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...