1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Jave in the <HEAD>???

Discussion in 'Black Hat SEO' started by belko002, Jan 9, 2011.

  1. belko002

    belko002 Registered Member

    Jul 4, 2010
    Likes Received:
    I'm doing a site audit and ran into a quick question...

    Generally speaking, I would think it would be a really bad idea to execute Java in the header, but I'm not 100% sure and don't a ton of Java, so I wanted to make sure before I shoved my foot in my mouth.

    The code towards the end of the header looks like:

    <script type="text/javascript"no
    </script> <!-- onmouseout="out('button1')" onmouseover="over('button1')"-->

    Any help or suggestions would be much appreciated!

    Thanks ahead of time
  2. Grizzy

    Grizzy Senior Member

    Nov 11, 2008
    Likes Received:
    Just to clarify.. what you written there is JavaScript, not Java. There is a big difference.

    Generally defining all of your functions inside the HEAD is actually a good idea becuase this way you know for sure that they are defined before they get used in the BODY.

    <!-- onmouseout="out('button1')" onmouseover="over('button1')"-->
    This is just an html comment.

    This is some sloppy markup. Are those typos on your part or is that what the code actually looks like?