Surya sasidhar
Surya sasidhar

Reputation: 30313

Question about script tag in ASP.NET

I saw code in a project which looks like this:

<script src='http://toolbar.wibiya.com/toolbarLoader.php?toolbarId=22800' type='text/javascript'></script>

I do not understand what the "src" attribute in a script tag means. Can you explain it to me? Thank you.

Upvotes: 0

Views: 177

Answers (3)

user261488
user261488

Reputation: 21

to load remote js file from specified url

Upvotes: 0

Chan
Chan

Reputation: 34

src tag is used for loading .js file in script tag more info goto:- http:/www.w3schools.com/TAGS/tag_script.asp

Upvotes: 0

rahul
rahul

Reputation: 187050

It refers to the url of a javascript file.

Read script

src

This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document. script elements with an src attribute specified should not have a script embedded within its tags.

Upvotes: 1

Related Questions