Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2003
    Thanked 0 Times in 0 Posts

    Mailing Meta Tag text Area


    1. Copy the coding into the HEAD of your HTML document
    2. Add the last code into the BODY of your HTML document -->

    <!-- STEP ONE: Paste this code into the HEAD of your HTML document -->


    <SCRIPT LANGUAGE="JavaScript">

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    function create(form) {
    if (confirm("Are you sure?")) {
    form.story.value = "Advanced Meta Tag Generator \n" +
    "author: Daniel Toljaga (http://www.bosniak.com) \n" +
    "Instructions: Simply copy the following lines of code and insert them " +
    "between the <HEAD> and </HEAD> tags in your HTML document. That's it! \n\n";
    if (form.input1.value != "") {
    form.story.value +="<META NAME=\"Title\" CONTENT=\"" +
    form.input1.value + "\">\n";
    if (form.input2.value != "") {
    form.story.value +="<META NAME=\"Author\" CONTENT=\"" +
    form.input2.value + "\">\n";
    if (form.input3.value != "") {
    form.story.value +="<META NAME=\"Subject\" CONTENT=\"" +
    form.input3.value + "\">\n";
    if (form.input4.value != "") {
    form.story.value +="<META NAME=\"Description\" CONTENT=\"" +
    form.input4.value + "\">\n";
    if (form.input5.value != "") {
    form.story.value +="<META NAME=\"Keywords\" CONTENT=\"" +
    form.input5.value + "\">\n";
    if (form.input6.value != "") {
    form.story.value +="<META NAME=\"Generator\" CONTENT=\"" +
    form.input6.value + "\">\n";
    if (form.input7.value != "") {
    form.story.value +="<META NAME=\"Language\" CONTENT=\"" +
    form.input7.value + "\">\n";
    if (form.input8.value != "") {
    form.story.value +="<META NAME=\"Expires\" CONTENT=\"" +
    form.input8.value + "\">\n";
    if (form.input9.value != "") {
    form.story.value +="<META NAME=\"Abstract\" CONTENT=\"" +
    form.input9.value + "\">\n";
    if (form.input10.value != "") {
    form.story.value +="<META NAME=\"Copyright\" CONTENT=\"© " +
    form.input10.value + "\">\n";
    if (form.input11.value != "") {
    form.story.value +="<META NAME=\"Designer\" CONTENT=\"" +
    form.input11.value + "\">\n";
    if (form.input12.value != "") {
    form.story.value +="<META NAME=\"Publisher\" CONTENT=\"" +
    form.input12.value + "\">\n";
    if (form.input13.value != "") {
    form.story.value +="<META NAME=\"Revisit-After\" CONTENT=\"" +
    form.input13.value + " \Days\">\n";
    if (form.input14.value != "") {
    form.story.value +="<META NAME=\"Distribution\" CONTENT=\"" +
    form.input14.options[form.input14.selectedIndex].value + "\">\n";
    if (form.input15.value != "") {
    form.story.value +="<META NAME=\"Robots\" CONTENT=\"" +
    form.input15.options[form.input15.selectedIndex].value + "\">\n";
    // End -->


    <!-- STEP TWO: Copy this code into the BODY of your HTML document -->


    <div align="center">
    <p align="left"> </p>
    <table class=normal WIDTH="600" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <td><center><font face="verdana" size="4">Advanced META Tag Generator</font></center>
    <div align="center"><center><table class=normal BORDER="0" CELLPADDING="2">
    <td><input TYPE="text" NAME="input1" SIZE="40"></td>
    <!-- The author META tag defines the name of the author of the document being read. -->
    <td><input TYPE="text" NAME="input2" SIZE="40"></td>
    <td><input TYPE="text" NAME="input3" SIZE="40"></td>
    <td><input TYPE="text" NAME="input4" SIZE="40"></td>
    <td><input TYPE="text" NAME="input5" SIZE="40"></td>
    <td><input TYPE="text" NAME="input6" SIZE="40"></td>
    <td><input TYPE="text" NAME="input7" SIZE="40"></td>
    <!-- The expires META tag defines the expiration date and time of the document being
    indexed and requires RFC1123 date format, for example: Thu, 04 Oct 2010 14:21:20 GMT -->
    <td><input TYPE="text" NAME="input8" SIZE="40"></td>
    <!-- The abstract META tag is a one line sentence which gives an overview of the entire webpage -->
    <td><input TYPE="text" NAME="input9" SIZE="40"></td>
    <!-- Copyright: no need to add ©, it will be added automatically -->
    <td><input TYPE="text" NAME="input10" SIZE="40"></td>
    <!-- Designer = Webmaster -->
    <td><input TYPE="text" NAME="input11" SIZE="40"></td>
    <!-- Publisher: Company that publishes material being read or sold on a web site -->
    <td><input TYPE="text" NAME="input12" SIZE="40"></td>
    <!-- The Revisit META tag defines how often a search engine or spider should
    come to your website for re-indexing. For example: 2 Days, 3 Days, 4 Days, etc.
    Note: Just ad number(s), word Days will be added automatically -->
    <td><input TYPE="text" NAME="input13" SIZE="40"></td>
    <!-- Distribution: Global (indicates that your webpage is intended for
    mass distribution to everyone), Local (intended for local distribution
    of your document), and IU - Internal Use (not intended for public distribution). -->
    <td><select NAME="input14" size="1">
    <option VALUE="" SELECTED>Select One</option>
    <option VALUE="Global">1. Global</option>
    <option VALUE="Local">2. Local</option>
    <option VALUE="IU">3. Intern Use</option>
    <td><select NAME="input15" size="1">
    <option VALUE="" SELECTED>Select One</option>
    <option VALUE="All">1. All</option>
    <option VALUE="None">2. None</option>
    <option VALUE="Index">3. Index</option>
    <option VALUE="No Index">4. No Index</option>
    <option VALUE="Follow">5. Follow</option>
    <option VALUE="No Follow">6. No Follow</option>
    <p><input TYPE="button" VALUE="Create META tags" ONCLICK="create(this.form)"> <input
    TYPE="reset" VALUE="Clear All"> <textarea WRAP NAME="story" ROWS="12" COLS="65"></textarea>

    <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

    <!-- Script Size: 8.47 KB -->

    How can i get the text area to be mailed to me?
    Plz can someone help!

  • #2
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Bucharest, ROMANIA
    Thanked 379 Times in 375 Posts
    only a server-side aplication (CGI as php, C++, pearl etc.) can mail or processing some data from a form. JavaScript is a client-side language, so it can not do that.
    Offshore programming


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts