Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26920

Re: Is it any fifference where I put the script tag in this example

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Is it any fifference where I put the script tag in this example
Date 2015-02-24 00:09 +0000
Organization A noiseless patient Spider
Message-ID <mcgffh$gs7$7@dont-email.me> (permalink)
References <mcgbvo$45v$1@dont-email.me>

Show all headers | View raw


On Tue, 24 Feb 2015 00:09:41 +0100, Tony Johansson wrote:

> Just assume that I have a very simple script tag that looks like this
> <script>
>       document.write("This is a test");
> </script>

> Then is it just the equivalent if I put this script tag within header
> tag or within the body tag.

No.

This particular script element will write the text "This is a test" into 
the document at the point you insert the script tag.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is it any fifference where I put the script tag in this example "Tony Johansson" <johansson.andersson@telia.com> - 2015-02-24 00:09 +0100
  Re: Is it any fifference where I put the script tag in this example "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-02-24 00:24 +0100
  Re: Is it any fifference where I put the script tag in this example "Tony Johansson" <johansson.andersson@telia.com> - 2015-02-24 00:30 +0100
  Re: Is it any fifference where I put the script tag in this example Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-24 00:09 +0000
    Re: Is it any fifference where I put the script tag in this example JJ <jj4public@vfemail.net> - 2015-02-24 20:46 +0700

csiph-web