How do I hide javascript from robots?

  FOEYDO 10:47 12 Jun 2005
Locked

Hi, I want to hide my javascript thats in my head title from robots, I know I can move it and just create a link. How do I do this?

  Eric10 10:16 13 Jun 2005

Create a plain text file containing all your javascripts and call it something like scripts.js or anything else that is meaningful to you but keep the .js extension. Place the following line in the head section of any pages that use the scripts:

<script language="javascript" src="scripts.js" type="text/javascript"></script>

You can modify the path inside the quotes following src= if you want to store the file in a folder rather than in the root of your website and also the filename if you chose something different.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

AMD Radeon Adrenalin release date, new features, compatible graphics cards

Inside the iMac Pro - Apple's most powerful Mac yet

iMac Pro release date, UK price & specs

Football : comment regarder la Ligue 1 en direct ?