Aug 25, 2008 #1 Pirellio Programmer Aug 25, 2008 18 US Get page title and set it to a variable. <title>Home Page</title> <c:set var="theTitle" scope="page" value="<title>"/> <meta tag name="Funnel" content="<cut ${theTitle}/>"/> Any idea how to achieve this goal?
Get page title and set it to a variable. <title>Home Page</title> <c:set var="theTitle" scope="page" value="<title>"/> <meta tag name="Funnel" content="<cut ${theTitle}/>"/> Any idea how to achieve this goal?
Aug 25, 2008 Thread starter #2 Pirellio Programmer Aug 25, 2008 18 US Everything is dynamically driven This code will be in the footer and generate differently each time its ran I have this so far but can't get it working <SCRIPT LANGUAGE = JavaScript> //alert(document.title) { document.write("<META NAME=\"funnel\" CONTENT=\"" + document.title + "\">\n"); var meta = document.createElement('meta'); meta.setAttribute('name', 'funnel1'); meta.setAttribute('content', document.title); document.getElementsByTagName('head')[0].appendChild(meta); } </SCRIPT> Upvote 0 Downvote
Everything is dynamically driven This code will be in the footer and generate differently each time its ran I have this so far but can't get it working <SCRIPT LANGUAGE = JavaScript> //alert(document.title) { document.write("<META NAME=\"funnel\" CONTENT=\"" + document.title + "\">\n"); var meta = document.createElement('meta'); meta.setAttribute('name', 'funnel1'); meta.setAttribute('content', document.title); document.getElementsByTagName('head')[0].appendChild(meta); } </SCRIPT>