Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #23487
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: JavaScript in a PRE element of an HTML document |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | (1 earlier) <lfgsk3$hlv$1@dont-email.me> <teaching-frame-20140309152656@ram.dialup.fu-berlin.de> <lfi00o$4mi$1@dont-email.me> <script-20140309161947@ram.dialup.fu-berlin.de> <lfi878$5pu$1@dont-email.me> |
| Date | 2014-03-09 19:44 +0100 |
| Message-ID | <XnsA2EBC8D728056eejj99@194.109.133.133> (permalink) |
"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote on 09 mrt 2014 in
comp.lang.javascript:
> Or you could have code
> that copies the content of a <script> element into a visible element.
Just write it in a <pre>:
<style type='text/css'>
pre {color:#800;}
</style>
<pre>
<script type='text/javascript'><script type='text/javascript'>
document.write(document.scripts[0].text)
</script></script>
</pre>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: JavaScript in a PRE element of an HTML document "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-03-09 07:01 +0200
Re: JavaScript in a PRE element of an HTML document "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-03-09 17:05 +0200
Re: JavaScript in a PRE element of an HTML document Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-03-09 17:15 +0100
Re: JavaScript in a PRE element of an HTML document "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-03-09 19:25 +0200
Re: JavaScript in a PRE element of an HTML document "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-03-09 19:44 +0100
Re: JavaScript in a PRE element of an HTML document Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-03-10 18:01 +0000
Re: JavaScript in a PRE element of an HTML document "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-03-11 09:59 +0100
Re: JavaScript in a PRE element of an HTML document Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-03-09 16:54 +0100
Re: JavaScript in a PRE element of an HTML document Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-03-09 16:30 +0000
Re: JavaScript in a PRE element of an HTML document Denis McMahon <denismfmcmahon@gmail.com> - 2014-03-09 22:16 +0000
Re: JavaScript in a PRE element of an HTML document "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-03-10 07:30 +0200
csiph-web