»
EnglishFrenchVietnamese

Print - Robots Text Generator - JavaScriptBank.com

Full version: jsB@nk » Utility » Generator » Robots Text Generator
URL: https://www.javascriptbank.com/robots-text-generator.html

Robots Text Generator © JavaScriptBank.comThis generator creates the meta tag for robots. It also includes the code for the Googlebot.

Full version: jsB@nk » Utility » Generator » Robots Text Generator
URL: https://www.javascriptbank.com/robots-text-generator.html



CSS
<style type=text/css>.table1 {  border: solid .05em;  padding: .5em;}</style><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<script type="text/javascript">/* This script and many more are available free online atThe JavaScript Source :: http://javascript.internet.comCreated by: Lee Underwood :: http://javascript.internet.com/ */function createRobotTag() {  var robotsTag="<meta name=\"robots\" content \"";  if (document.getElementById("none").checked) {    robotsTag += "none\">";    document.getElementById("index").disabled=true;    document.getElementById("follow").disabled=true;  } else if (document.getElementById("none").checked==false) {    document.getElementById("index").disabled=false;    document.getElementById("follow").disabled=false;    if (document.getElementById("index").checked) {      robotsTag += "noindex, ";    } else {      robotsTag += "index, ";    }    if(document.getElementById("follow").checked) {      robotsTag += "nofollow\">";    } else {      robotsTag += "follow\">";    }  }  document.getElementById("tag").value = robotsTag;}function googTag() {  var googleTag="<meta name=\"Googlebot\" content=\"nofollow\">";  if (document.getElementById("googleBot").checked) {    document.getElementById("tag2").value = googleTag;  } else {    document.getElementById("tag2").value = "";  }}function copyToClipboard() {  document.getElementById("tag").focus();  document.getElementById("tag").select();  copiedTxt=document.selection.createRange();  copiedTxt.execCommand("Copy");}function copyToClipboard2() {  document.getElementById("tag2").focus();  document.getElementById("tag2").select();  copiedTxt2=document.selection.createRange();  copiedTxt2.execCommand("Copy");}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<table width="60%" align="center" class="table1"><tr><td><form><input type="checkbox" id="none" onclick="createRobotTag()"> <strong>Tell robots to ignore this page</strong><br><input type="checkbox" id="index" onclick="createRobotTag()"> <strong>Tell robots to not index this page in the search engines</strong><br><input type="checkbox" id="follow" onclick="createRobotTag()"> <strong>Tell robots to not follow any of the links on this page</strong><p>Insert this meta tag in the <head> section of your Web page:<br><input type="text" size="50" id="tag" readonly><br><input type="button" onClick="copyToClipboard()" value="Copy to clipboard"><br><small>[<em>Netscape, Firefox, and Opera users - Press button to select and [Ctrl]+C to copy</em>]</small><br><br><br><input type="checkbox" id="googleBot" onclick="googTag()"> <strong>Tell only the Googlebot to ignore this page</strong><p>Insert this meta tag in the <head> section of your Web page:<br><input type="text" size="50" id="tag2" readonly><br><input type="button" onClick="copyToClipboard2()" value="Copy to clipboard"><br><small>[<em>Netscape, Firefox, and Opera users - Press button to select and [Ctrl]+C to copy</em>]</small></form></td></tr></table><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->