How to Use Konami Code On your Website

blitzcoder's Avatar author of How to Use Konami Code On your Website
This is an article on How to Use Konami Code On your Website in Web Design, HTML And CSS Tutorials.
Rated 4.50 By 2 users
The well-appreciated and possibly most-remembered “secret” code of all time, The Konami Code, a cheat code that originated on the original NES and has since made its way into many other games.
up, up, down, down, left, right, left, right, B, A

But it is not only limited to games anymore! You can include this on your own website to make an awesome impression on the viewers.

You can see a working example (and subsequently many more) on . This site also lists many more websites which use this code. Go to the website and use the key code mentioned above to get in.

The code to include konami is very simple. Let us say I want to redirect the website to go4expert when the code is entered on any web page. All I have to do is include the following JavaScript code.

<script type="text/javascript">
if ( window.addEventListener ) {  
  var state = 0, konami = [38,38,40,40,37,39,37,39,66,65];  
  window.addEventListener("keydown", function(e) {  
    if ( e.keyCode == konami[state] ) state++;  
    else state = 0;  
    if ( state == 10 )  
      window.location = "";  //you can write your own code here
    }, true);  
Hopefully, the code is very simple to understand. Place this in your HTML file and you are good to go!

Check Out Working Sample
dotNet Zombie like this
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
If you liked this article do nominate this article for Article of the month - Sep 2010 Before 15th of October 2010.
seoguru's Avatar
Go4Expert Member
if you want use Konami Code on your website you can contact any web developer (programmer)
dotNet Zombie's Avatar, Join Date: Aug 2010
Go4Expert Member
Ah that brings back memories.
seoguru's Avatar
Go4Expert Member
Google’s New WebP Image Standard Is All About SEO

One of the most important aspects of on-page SEO (Search Engine Optimization) these days is site speed (on-page SEO consists of the factors you change/implement on your Web site itself, such as changing title tags, posting content, etc.). In other words, how fast does your Web site load when someone visits it? Is it image-intensive? If so, do you extend the courtesy of letting your visitors click on a thumbnail to load a full image instead of you loading it for them? Even if you think you’re doing them a favor by resizing an image via HTML or CSS, if the full-sized image is what loads, you’re not giving your visitors the most optimal browsing experience. With that said, there have been a number of case studies that aim to show just how important Google considers your site’s load speed to be. It’s definitely a metric Google considers in regards to how they rank you in the SERPs (Search Engine Results Pages), but it’s not clear just how much weight they give to this metric specifically. Well, now Google has pretty much spelled it out under no uncertain terms that they absolutely care about how fast your site loads. This means that you should, too.

pemeet123456's Avatar, Join Date: Oct 2010
Newbie Member
i my self vipin kumar srivastav,new on this forum wanna know about web development.

thanks fro information