How To Use Scripts

Table of contents:

How To Use Scripts
How To Use Scripts

Video: How To Use Scripts

Video: How To Use Scripts
Video: 📌 HOW TO USE EXPLOITS / SCRIPTS ON ROBLOX | FULL TUTORIAL 2020 (FOR BEGINNERS) 2024, December
Anonim

The script is a program for the Internet, written in one of the programming languages. The most common languages are Php and Perl. Scripts are designed to organize one of the services on the site, or perform other functions necessary for it.

How to use scripts
How to use scripts

Instructions

Step 1

Add a script (script) to the Html code of your page to make your site more interactive and dynamic. Use a special tag to insert a script. Also in it, you must indicate the programming language in which it is written using the Type tag. Example code: "Script body".

Step 2

Please note that some early versions of browsers may not support script processing and display its code as plain text on the page. To prevent this, "hide" the content of the tag in the comment tag. In this case, the old browser will ignore its content, and the new ones will be able to recognize the script for execution even though it is surrounded by comment tags.

Step 3

For example, use the following code for this:. Also you can use tag. In this case, an alternative text will be displayed on the screen if the script execution failed. This is used in browsers that support scripting, but this option is currently disabled. Then the program will display the text in the tag. Example code: "Enter the text to be displayed instead of the script."

Step 4

Use ready-made codes that can be found on the Internet to place scripts on the site. For example, to use a script on a page that will determine the user's browser name and version, add the following code to the page to use JavaScript: document.write (" Your browser name: " + navigator.appName + "); document.write (" Your browser version ":" + navigator.appVersion + ").

Recommended: