Java Script in <Head></Head>

by tesagen 5. september 2009 22:01

Javascripts

At the moment, we have our script between the two BODY tags. And it works perfectly well here. It's quite happy where it is. However, SCRIPTS are best kept in the HEAD section of your HTML. This is because any code in the HEAD section will be dealt with first by the browser. And besides, it's neater up there. You're not cluttering up your HTML code with lots of JavaScript.

<HEAD>
<TITLE>A First Script</TITLE>

<SCRIPT LANGUAGE = JavaScript>

document.write("Hello World")

</SCRIPT>

</HEAD>

Tags:

JAVA

Legg inn kommentar




  Country flag

  • Kommentar
  • Forhåndsvisning
Loading


Velkommen

Hei

Denen siden inneholder private programerings snutter

Været

Månedsliste

Nyeste Innlegg

Kalender

<<  mai 2012  >>
mationtofr
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar