This page will explain how to install the JavaScript code generated by CssHidex.
Installing the JavaScript code generated by CssHidex is basically the same as installing regular JavaScript code. You can install JavaScript as inline in your HTML document or in a separate external file and then point to that file from your HTML document.
| If your CSS code contains a relative path, you must be careful about in which folder to place the JavaScript file. See "Maintain relative path" for more information. |
To install the JavaScript code in your webpage as inline JavaScript, write <script></script> in the HTML document, and then copy the JavaScript code you obtained from CssHidex between <script> and </script> like shown below:
<script> ... JavaScript Code ... </script>
To install the JavaScript code in your webpage as external JavaScript, save the JavaScript code in a file with the extension .js. Then, add a script tag in your webpage. You need to specify the path to the JavaScript file in the src attribute like this:
<script src="path/to/javascript/file"></script>