Jump to content

[Script] Press " h " and go back to home


Recommended Posts

Posted

Hello people ,

This script is working like a hotkey ! What i mean ? If you add this script in your site , when you press the button " h " you will go back in the home ( you can change the link )

 

Here is the script :

 

<script language="JavaScript1.2">

<!--

/*

script found by LoStRe

*/

if (document.layers)

document.captureEvents(Event.KEYPRESS)

function backhome(e){

var targeturl="http://www.maxcheaters.com" <---- if you want to change the url just change the link and when you press h you will go back in the site you want

if (document.layers||document.getElementById&&!document.all){

if (e.which==104||e.which==72)

window.location=targeturl

}

else if (document.all){

if (event.keyCode==104||event.keyCode==72)

window.location=targeturl

}

}

document.onkeypress=backhome

//-->

</script>

 

Hope to help you ! :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...