After reading google's warnings on URL Cloaking, and many posts on the subject, I assume the simple sample below would be deemed in violation of those guidelines. Function replaceURL(){ document.getElementById('myID').href= 'http://www.offsite.com';} Are there methods of accomplishing this without violating google's guidelines? Side note - if crawlers can't read javascript, how can they detect url cloaking?