Like any URL link on facebook

function generateLike(){ var linkurl = document.getElementById(‘userurl2’).value ; var generatedbutton = “

Like button

URL: “+ linkurl +”

” ; document.getElementById(“likebuttonuser2”).innerHTML=generatedbutton; } alert (“hi”);
EOT;

?>

URL of like button: