Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32309
| From | Cezary Tomczyk <cezary.tomczyk@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Adding section into page |
| Date | 2017-01-24 21:33 +0100 |
| Organization | csiph.com Internet News Service |
| Message-ID | <o68dn3$odj$1@csiph.com> (permalink) |
| References | <BJhJnbcqB$gYFwL8@invalid.uk.co.demon.merlyn.invalid> <o62jm4$kks$1@dont-email.me> <kC3wFKr3QphYFwHG@invalid.uk.co.demon.merlyn.invalid> <o66fl1$oro$1@dont-email.me> |
On 24/01/2017 03:54, Doc O'Leary wrote: > For your reference, records indicate that > Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> wrote: > >> ASIDE : can code executed from within a script element in the body of a >> page obtain a reference to the script element itself or to an >> adjacent element in the DOM tree, or similar? > > document.currentScript will get you the element of the currently > executing script. With some exceptions based on http://caniuse.com/#search=document.currentScript -- Cezary Tomczyk http://www.ctomczyk.pl/ https://www.aslint.org/ - Accessibility linting tool
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Adding section into page Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-01-21 23:36 +0000
Re: Adding section into page "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-22 00:47 +0100
Re: Adding section into page Doc O'Leary <droleary@2015usenet1.subsume.com> - 2017-01-22 15:38 +0000
Re: Adding section into page Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-01-23 23:39 +0000
Re: Adding section into page "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-01-23 17:37 -0800
Re: Adding section into page "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-01-23 17:38 -0800
Re: Adding section into page Doc O'Leary <droleary@2015usenet1.subsume.com> - 2017-01-24 02:54 +0000
Re: Adding section into page Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-01-24 21:33 +0100
Re: Adding section into page Dr J R Stockton <J.R.Stockton@physics.org> - 2017-01-25 14:30 -0800
Re: Adding section into page "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-01-25 17:51 -0800
Re: Adding section into page Dr J R Stockton <J.R.Stockton@physics.org> - 2017-01-26 04:17 -0800
Re: Adding section into page "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-26 14:16 +0100
Re: Adding section into page Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-01-27 22:33 +0000
Re: Adding section into page "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-01-27 06:34 -0800
Re: Adding section into page "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-01-22 10:52 -0800
Re: Adding section into page Ram Tobolski <ramtob@gmail.com> - 2017-01-23 08:50 -0800
csiph-web