Created
July 17, 2012 16:10
-
-
Save rltrent/3130342 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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