Horje

How to add HTML <script> crossorigin anonymous Attribute

Here is a link to a .js file on another server. Here we use both the integrity and crossorigin attributes.

index.html
Example: HTML
        <script
            type="text/javascript"
            src="my_script.js"
            crossorigin="anonymous"
        ></script>

Output should be:

How to add HTML <script> crossorigin anonymous Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin