Skip to content

Instantly share code, notes, and snippets.

@rltrent
Created July 17, 2012 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rltrent/3130342 to your computer and use it in GitHub Desktop.
Save rltrent/3130342 to your computer and use it in GitHub Desktop.
<script>
document.getElementsById('phone')[0].onkeydown= function(event)
{
if (event == undefined)
{
event = window.event;
}
if (event.keyCode == 13)
{
var js_phone = document.getElementsByName('phone')[0].value;
window.location = 'http://secure.ifbyphone.com/clickto_status.php?click_id=43245&phone_to_call='+js_phone+'&key=12334fgasdfg9kd892', 'Clickto' , 'width=200,height=200,toolbar=no,location=no, menubar=no, scrollbars=no, copyhistory=no,resizable=no';
return false;
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment