I'm trying to pass this string to a javascript function:
<a href="javascript:InsertPhrase('Let%27s%20groove')">Let's groove</a>
and this is the function:
function InsertPhrase(ThisPhrase) {
document.getElementById("F1").value = document.getElementById("F1").value + decodeURIComponent(ThisPhrase) + " ";
}
I know the apostrophe is screwing things up but I thought that encoding it would fix it, however the function does not get called. Please can someone tell me why and how to fix it?