Welcome to WebmasterWorld Guest from 54.198.87.238

Message Too Old, No Replies

Will this piece of Javascript guarantee a freshtag?

     
12:34 pm on Feb 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It displays the date within a html page:

<script language="JavaScript">

var d = new Date()

document.write(d.getMonth() + 1)

document.write("-")

document.write(d.getDate())

document.write("-")

document.write(d.getFullYear())

</script>

3:23 pm on Feb 25, 2005 (gmt 0)

WebmasterWorld Senior Member ciml is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I'm afraid not. A JavaScript enabled browser will add the date to the pahe after the content has been served; Googlebot will just be served the JavaScript and not the date.

To give Googlebot different content each day you need something server side, e.g. SSI/PHP/ASP/etc.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month