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

    Joined:
    Jul 4, 2010
    Messages:
    75
    Likes Received:
    14
    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
    src="js.js">
    </script>
    </script> <!-- onmouseout="out('button1')" onmouseover="over('button1')"-->
    </HEAD>

    Any help or suggestions would be much appreciated!

    Thanks ahead of time
     
  2. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    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.


    Code:
    <!-- 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?