Help - Add additional meta tags using JS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Darren Blackley

    Help - Add additional meta tags using JS

    Hi there I have documents that I want to automatically add additional meta
    tags to. The documents already have some meta tags and I want to keep them
    all together, so I want to add my new meta tags to the end of the existing
    ones... can someone help me out with a script to do this... example below.

    <head>
    <title>The Document Title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="discripti on" content="this documents discription">
    <meta name="keywords" content="import ant,stuff">
    <meta name="dc.subjec t" content="import ant,stuff">
    <-------------------------------------------- I want to add more meta tags
    at this point after the current meta tags
    <link href="styles.cs s" rel="stylesheet " type="text/css">
    <script language="JavaS cript" type="text/JavaScript">
    <!--
    script stuff here
    //-->
    </script>
    </head>

    Thanks for your help in advance

    --
    Cheers,
    Darren


  • Darren Blackley

    #2
    Re: Help - Add additional meta tags using JS

    This has been answered pls disregard.

    "Darren Blackley" <darren_blackle y@hotmail.com> wrote in message
    news:bieju3$hnc $1@ftp.curtin.e du.au...[color=blue]
    > Hi there I have documents that I want to automatically add additional meta
    > tags to. The documents already have some meta tags and I want to keep them
    > all together, so I want to add my new meta tags to the end of the existing
    > ones... can someone help me out with a script to do this... example below.
    >
    > <head>
    > <title>The Document Title</title>
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    > <meta name="discripti on" content="this documents discription">
    > <meta name="keywords" content="import ant,stuff">
    > <meta name="dc.subjec t" content="import ant,stuff">
    > <-------------------------------------------- I want to add more meta tags
    > at this point after the current meta tags
    > <link href="styles.cs s" rel="stylesheet " type="text/css">
    > <script language="JavaS cript" type="text/JavaScript">
    > <!--
    > script stuff here
    > //-->
    > </script>
    > </head>
    >
    > Thanks for your help in advance
    >
    > --
    > Cheers,
    > Darren
    >
    >[/color]


    Comment

    Working...