Jump to content

Detect Title Tag


rammac13

Recommended Posts

Ok so I think I am getting close. I am trying to put the title name (link) into a link on the page. but I am not sure how to call it correctly. I have javascript:tagLink in the a href link but that is not correct. What am I missing. Thanks.

 

 

<html>

<head>

<title> link </title>

 

 

<script type="text/javascript">

function getTagCloudLink()

{

var tagLink = document.getElementsByTagName("title")[0].innerHTML

;

 

}

 

</script>

 

</head>

<body>

 

 

<p><a href="shop-enzy.com/store/index.html()">javascript:tagLink</a></p>

 

</body>

</html>

Link to comment
https://forums.phpfreaks.com/topic/129321-detect-title-tag/#findComment-670999
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.