- 
	
	
		
			
			
				You do realize by 'gay' I mean a man who has sex with other men?
			
			
			
			
			 
			
				
				
				
				
				
					    
				
			
		 
		
			
				
				
				
					Calling JavaScripts With One Line Of HTML Code
				
				
						
							
							
						
						
							
						
				
					
						
							We all know that some JavaScript coding can be excessive and add considerable amounts of additional coding to our pages making them both slower and less search engine friendly however, what if I told you there was a way you could call the EXACT same JavaScript functions you are calling now by using a single line of code and, in the process you would NEVER have to find a specific piece of JavaScript again as you would instantly know where it was saved.
You would probably think the above is in fact very time consuming but, it actually takes no time at all.
The secret is to copy and paste the JavaScript into a plain text file and save that on your server somewhere. However, instead of saving it as a .txt extension save this file as a .js extension and, to make it easier still to find, when you upload this file to your server place it in a directory called /JavaScript/.
That's pretty much it, easy huh?
Now comes the part of actually getting the JavaScript to work on your web pages, what you need to do instead of using the complete JavaScript coding that you usually would if you wanted to make a pop-up console appear is to use the following coding placed between your <head> and </head> tags:
<script language="JavaScript" src="../JavaScript/popup.js"></script>
That will now call the popup.js file or whatever it was you called it from your server and make the JavaScript function work for your surfers with JavaScript enabled in their browser.
As you can see, not only does using this method save you a considerable amount of time but, it will also make your pages more search engine friendly as spiders will not have to work their way through a lot of heavily JavaScript before they get to your SE content.
Article written by Lee.
http://www.sourcecoding.com
						
					 
					
				 
			 
			
			
		 
	 
		
	
 
		
		
		
	
 
	
	
	
	
	
	
	
	
	
	
	
	
		
		
		
		
			
				
				Posting Permissions
			
			
				
	
		- You may not post new threads
 
		- You may not post replies
 
		- You may not post attachments
 
		- You may not edit your posts
 
		-  
 
	
	
	Forum Rules
 
			 
		 
	 
 
  
 
 
Bookmarks