answersLogoWhite

0

What daes it src in javascript?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

The src attribute specifies a local or remote (files that aren't on the same server as the webpage requesting them) javascript file to be loaded into the page, for instance:

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

will load the popular jQuery library into the page.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What daes it src in javascript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a javascript?

go to notepad and write Javascript code and save it as .js and then import it into a page with a src tag


Is JavaScript programs compiled into intermediate form and linked to a HTML document?

JavaScript isn't compiled. It's an interpreted language, which means that it's translated into 'computer language' line by line when needed. You can link JavaScript to a HTML document by using the src attribute of the script tag. If you name your external javascript 'test.js', you can inject it into your HTML page by using &lt;script type="text/javascript" src="test.js"&gt;&lt;/script&gt;.


Can a static site contain JavaScript?

Yes. JavaScript can be included inline or via script tag's src attribute (as long as the browser can find the file at the specified location.)


What element do you use to add JavaScript code to a web page and how is it structured?

To add javascript code in HTML, you have to include the script tag on top. It can be added as &lt;script src="source of script"&gt;&lt;/script&gt;


How do you get your demo on livemixtapes?

var wgStaticFilesServer = 'http://en.site1.answcdn.com';var scripts = parent.document.getElementsByTagName('script');for (var index=0;index&lt;scripts.length;index++){var src=scripts.item(index).src;if(src &amp;&amp; ((src.indexOf('.js')&gt;-1) &amp;&amp; (src.indexOf('/templates/scripts')&gt;-1))){document.write('&lt;script type=\'text/javascript\' src='+src+'&gt;&lt;/sc SUCK MY DICK &amp; ILL TELL YOU


How do you put java script into HTML?

Javascript inside html &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" language="javascript"&gt; // Java script code here &lt;/script&gt; &lt;body&gt; // html code here &lt;/body&gt; &lt;/html&gt; Via External Link: &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" language="javascript" src="location of js file"&gt; &lt;/script&gt; &lt;body&gt; // html code here &lt;/body&gt; &lt;/html&gt;


Which tag is used to implement javascript in an HTML file?

The SCRIPT tag is used to implement a JavaScript (or other kind, i.e. VBScript) in an HTML document. The tag can either contain the actual JavaScript code, or can point to an external script file that should be included at render-time. To add JavaScript directly to the document in HTML 5, place these tags in either the HEAD section or just prior to the BODY sections closing tag. &lt;script type="text/javascript"&gt; //JS code goes here &lt;/script&gt; To call an external JavaScript file, use the "src" attribute, like so: &lt;script type="text/javascript" src="path/to/script.js"&gt;&lt;/script&gt; If you're unsure of where to put the JavaScript tags, see the related answer(s).


How do you call a perl program from javascript?

You can call the Script like this, &lt;script type="text/javascript" src="perl_script.pl"&gt;&lt;/script&gt; So you just replace a regular Javascript Call ( .js ) with the .pl Script. Inside the Perl Script you will have to use embraced Javascript Functions / Code, f.e. like print "document.write.('Hello World');";.


How do you make ajava script file?

JavaScript files can be created with the extension .js Note that an accompanying HTML file must reference it in order for it to run as JavaScript. You can include the file in your HTML document by adding the following to the head or body of the document: &lt;script type="text/javascript" src="myJavaScriptFile.js"&gt;&lt;/script&gt; Replace myJavaScriptFile.js with the file name of your JavaScript file.


How can you insert javascript into an HTML document?

Here are two examples of internal and external calling of javascriptInternal Calling (Not Recommended)// Your javascript code ehreExternal Calling (Recommended)


What is java scripts?

Linking a JavaScript file usually means to include your script code from a separate file instead of inline. For example: &lt;script src="/js/script.js" type="text/javascript"&gt;&lt;/script&gt; This allows you to reuse the same JavaScript code on multiple pages, and increases the speed of your site on average, since browsers usually cache these files the first time they are downloaded.


What is linking java scripts?

Linking a JavaScript file usually means to include your script code from a separate file instead of inline. For example: &lt;script src="/js/script.js" type="text/javascript"&gt;&lt;/script&gt; This allows you to reuse the same JavaScript code on multiple pages, and increases the speed of your site on average, since browsers usually cache these files the first time they are downloaded.