|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to find out from HTML code that it's Internal JS & it's External JS
Hi all,Good Morning,Can anybody please say me what is the difference between Internal & External Javascript?I know something
but I want to know that how to find out from HTML code that this is Internal Javascript & this is External Javascript |
|
#2
|
||||
|
||||
|
<script src="script.js">
i believe if theres something looks like this its external which means the whole process within that file is external or save as different file and call it to the page... |
|
#3
|
|||
|
|||
|
Quote:
Thanks dear, Please give example of Internal JS & please explain below scripts whether they are external or internal <script language="javascript" type="text/javascript" src="/include/ac_runactivecontent.js"></script> <script type="text/javascript" src="/include/functions.js"></script> <script language="javascript" type="text/javascript" src="https://travel.gotravel123.net/content/air/odysol-en-suppliers.js"></script> |
|
#4
|
||||
|
||||
|
External JS - your JS coding is separated in a new file with an extensions .js.. then the web page you will be using the separated JS is can be accessed by adding the code <script type="text/javascript" src="url of the .js"></script> into your html...
Internal JS - your JS coding is coded at your html file. it is coded between the <script> your code......... </script> |
|
#5
|
|||
|
|||
|
Quote:
Hi morph, see below examples , as u said first 2 are internal JS & last is external ??? <script language="javascript" type="text/javascript" src="/include/ac_runactivecontent.js"></script> <script type="text/javascript" src="/include/functions.js"></script> <script language="javascript" type="text/javascript" src="https://travel.gotravel123.net/content/air/odysol-en-suppliers.js">
__________________
GaryTheScubaGuy's Top 12 seo tips - 2008 bbcode ------------------------------------------------------------- Success is not a destination but its a journey |
|
#6
|
|||
|
|||
|
Quote:
Read morph's post again - he explained it very well.
__________________
New to SEO? SEOChat SEO FAQs Forum Rules and Posting Guidelines URL canonicalization code solutions |
|
#7
|
|||
|
|||
|
Quote:
Hi JagNet, means if I found src= in coding (We can called external JS file at anywhere) then it is external JS ( means here JS is linked ) & I think given one is internal JS <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-2098610-1"); pageTracker._initData(); pageTracker._trackPageview(); </script> here JS is embed If I am still wrong then let me be correct Last edited by tinaceer : April 22nd, 2008 at 05:16 AM. |
|
#8
|
||||
|
||||
|
Quote:
Its been an year now when i last did any sort of coding but if i am not wrong it is as simple as that when an external .js file is being referenced it is an external script, which is quite easy to make out. and when you have an internal code segment without any reference to an external file like the one you mentioned, its an internal script, thats an independent code block. Well, please correct me Jagnet or any one else and pardon me if i am wrong. I used to be a coder, somehow dont get any chance.
__________________
Upload Music - My Friend's Musical Passion! SEO Chat FAQ's Worried About PR? Read This First! Fools rush in where angels fear to tread! |
|
#9
|
||||
|
||||
|
see it here http://www.tutorio.com/external-tutorials.html
I think it will help.
__________________
|
|
#10
|
|||
|
|||
|
Yes, from the Google Analytics code example above, that's internal (embedded) Javascript, which relies on the Javascript in the external file referenced through src= to work.
|
|
#11
|
|||
|
|||
|
Thanks to all of u guys
|
|
#12
|
||||
|
||||
|
Quote:
100% correct...now you got it.. |
![]() |
| Viewing: SEO Chat Forums > Other > SEO Scripts > How to find out from HTML code that it's Internal JS & it's External JS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|