answersLogoWhite

0

What daes it src in javascript?

User Avatar

Anonymous

∙ 13y ago
Updated: 8/20/2019

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

∙ 13y ago
User Avatar

What else can I help you with?

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;.


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;


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.)


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

The SCRIPT tag is used to indicate JavaScript (or any other scripting language) within an HTML document. The tag looks like this: &lt;script type="text/javascript"&gt;&lt;/script&gt; You can either enter the JavaScript code between the opening and closing SCRIPT tags, or you can add a source (src) attribute to the tag to point to an external JavaScript file.


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 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.


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.