|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Reading META Tags
<i><b>Originally posted by : Mike Harlan (mharlan@home.com)</b></i><br />Is there a way I can read the META tags displaying the keywords and descriptions from within an ASP page?<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : steve schofield</b></i><br />No I don't believe so..<br /><br /><br />------------<br />Mike Harlan at 1/30/00 11:52:07 AM<br /><br />Is there a way I can read the META tags displaying the keywords and descriptions from within an ASP page?<br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : Mike B (mikeb811@hotmail.com)</b></i><br />Actually you can read the META tag info via the following javascript routine. <br /><br />Just pass which META attribute you want to read. This will read that attribute on all META tags and append them to a single string. If you remove the +'
', it will only return the last one.<br /><br />Hope this helps<br /><br />Mike<br /><br />function getMETA(whichAttribute)<br />{ // this will return the whichAttribute value of the META tag<br />var METAstr=''<br />var q=document.all<br />for (a in q)<br />{ if (q[a].tagName == "META") <br /> {<br /> METAstr+=q[a].getAttribute(whichAttribute)+' '<br /> }<br />}<br />return METAstr<br />}<br /><br /><br /><br />------------<br />steve schofield at 1/30/00 9:43:49 PM<br /><br />No I don't believe so..<br /><br /><br />------------<br />Mike Harlan at 1/30/00 11:52:07 AM<br /><br />Is there a way I can read the META tags displaying the keywords and descriptions from within an ASP page?<br /> |
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Reading META Tags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|