It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

updating link in head section

updating link in head section

Postby pokersteve786 on Thu Jan 20, 2011 8:16 pm

I have a javascript where I check to see what the last 4 characters are of the URL I am on and if they are html I want to set a

<link rel="canonical" href="http://www.yourcanonicalurl.com" /> type of variable in my <head> section. How do I do this? Is it a document.write statement or some type of getelement syntax?

Thanks,
Steve
pokersteve786
 
Posts: 1
Joined: Thu Jan 20, 2011 8:14 pm

Who is online

Users browsing this forum: No registered users and 7 guests