answersLogoWhite

0

You cannot use javascript in a css (cascading style sheets) file. You can only write javascript in javascript files (js extension) or in html files inside of <script type="text/javascript"></script> tags.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What languages can a browser understand?

HTML, CSS, &amp; JavaScript.


What code does MySpace use?

you can use html, dhtml, or css !! do not use javascript though!


Can an entire website be written in Javascript?

No. The website is still going to need to be displayed in HTML, and CSS is going to be needed to create the layout. While you could use JavaScript to create the HTML structure, you still will need a base HTML document just to get the browser to call the JavaScript's initial functions.


What coding is used on Neopets?

User-created web pages use HTML and CSS, and TNT pages (owned by Neopets) use HTML, CSS, and JavaScript.


How do you create a registration form using css and javascript in HTML?

Form is an HTML construct. The first part tells the server to Get or Post. To format with CSS is one thing, to make it interactive, use JavaScript. I will give a URL below:


How do you place images in between text frames?

You have to use a Stylesheet (CSS). Or you can type CSS straight into the document.


How do you link css to a database?

CSS, Cascading Style Sheet, is a formatting tool. It can not connect to a database. You need to use a programming language like C#, JavaScript, or PHP.


Can I use a css div layout on my MySpace and let users switch between two totally different styles using buttons on my MySpace using css?

You'll need to use JavaScript to do something like that. And unfortunately, at the time of writing this, MySpace won't allow JavaScript on profiles.


What programming language is used for webOS applications?

HTML5, JavaScript, CSS


How does you call javascript file in css?

In your HTML add in the tags


Can you hide and reveal text e.g YouTube comments without the use of javascript I wanted to try it on Myspace but it disables javascript.?

Very unlikely. See, Javascript is used to change the className attribute of the text node. When the className has changed, the node uses the properties that are set with CSS. This means you can keep a text invisible with CSS only, but you'll always need Javascript to switch classes.


What does a JavaScript certificate document?

A JavaScript certificate document is a document that proves you have all knowledge needed to master web development by using the Javascript and also HTML/DOM.