Hello, I'm using the following code to display a Konami Code on my website. <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" src="konami.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(window).konami(function(){ alert('Konami Code Activated'); }); }); </script> Code (markup): I don't want an alert when the Konami Code has been entered, I would like the same effect that the one on this page : http://snaptortoise.com/konami-js/ Any idea on how to modify my script to do it ? Best regards,
They have a few examples, but if you want to redirect to a different site, Replace the line alert('bla bla'); with this window.location = 'http://google.com';
Thanks for your answer. window.location = 'http://google.com'; is good but you still see the url in browser. If you do the konami code on this page : http://snaptortoise.com/konami-js/ The page will change but the url will stay the same. This is what I want.
I don't see any place to submit anything on the page, but "The page will change but the url will stay the same" can mean that the page is using AJAX to change text on the page.