How do I hide javascript from robots?

  FOEYDO 10:47 12 Jun 05

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 05

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.

How to watch Surface PC live stream | Surface PC release date, price, spec rumours: All-in-one…

1995-2015: How technology has changed the world in 20 years

Best Photoshop video tutorials: 8 video tutorial websites for Photoshop

Apple's event invitations decoded: A look back at 16 of Apple's most cryptic invites | Clues in…