Forum Moderators: open
I currently have a select box on every page of my site that contains about 20 options. I dont want these options to be seen by Search Engines because if someone types in a keyword that is in that select box, anyone of my pages come up and I don't want them too. Get what I'm sayin? ;)
I was curious how I can make that select box a javascript so it is not viewable by Search Engines. Would it be as easy as making an include of a *.js file? Can google read .js files?
Does anyone have any suggestions for me?
thanks in advance for your help!
Wes
The script in the .js file:
document.writeln('<select name="myselect">');
document.writeln('<option value="1">Jack</option>');
document.writeln('<option value="2">Jill</option>');
document.writeln('</select>');
Include it by inserting this into your web page:
<script type="text/javascript" src="nameoffile.js"></script>