Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37810
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Calling an include file by using JavaScript ? |
| Date | 2019-11-19 11:37 +0100 |
| Message-ID | <h3huvcFkbutU1@mid.individual.net> (permalink) |
| References | <9bab4aea-6cd1-4c20-a953-8f02509189af@googlegroups.com> <87d0dqi37t.fsf@bsb.me.uk> |
On 17.11.19 22:48, Ben Bacarisse wrote: > dr.j.r.stockton@gmail.com writes: > >> I have many local pages with the following line in the HEAD >> element : >> <script type="text/javascript" src="C.js"></script> >> >> I want to add some constant Javascript to each of those pages; >> I could do it by putting next a line : >> <script type="text/javascript" src="D.js"></script> >> >> Can I get the same inclusion, with a little respectable >> standards-compliant code, by putting a bit more script in C.js ; >> and if so how? > > If you can rely on them being supported, ECMAScript modules are probably > the way to go. Also see here: <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules> -- Arno Welzel https://arnowelzel.de
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Calling an include file by using JavaScript ? dr.j.r.stockton@gmail.com - 2019-11-17 12:52 -0800
Re: Calling an include file by using JavaScript ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-17 22:47 +0100
Re: Calling an include file by using JavaScript ? dr.j.r.stockton@gmail.com - 2019-11-18 10:00 -0800
Re: Calling an include file by using JavaScript ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-19 11:41 +0100
Re: Calling an include file by using JavaScript ? dr.j.r.stockton@gmail.com - 2019-11-18 15:36 -0800
Re: Calling an include file by using JavaScript ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-11-17 21:48 +0000
Re: Calling an include file by using JavaScript ? Arno Welzel <usenet@arnowelzel.de> - 2019-11-19 11:37 +0100
Re: Calling an include file by using JavaScript ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-19 11:54 +0100
csiph-web