Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #13180
| From | Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | A way of displaying an active Script |
| Date | 2012-04-02 23:40 +0100 |
| Organization | Home |
| Message-ID | <KFY94oUiriePFw3k@invalid.uk.co.demon.merlyn.invalid> (permalink) |
I thought I'd try this, without much hope. It works in Firefox Opera
Safari & Chrome; in IE8, the script is executed but not shown. IE 9/10 ?
<!doctype HTML>
<title>test</title>
<body>
aaa
<script type="text/javascript"
style="display:block; white-space:pre; font-family:monospace;">
A = 5 + 7
document.writeln(A)
</script>
zzz
</body>
Result shown :
aaa
A = 5 + 7
document.writeln(A)
12 zzz
In Firefox, copy'n'paste of that does not copy the script part.
In Opera, Safari, Chrome, it does.
--
(c) John Stockton, nr London UK ?@merlyn.demon.co.uk IE8 FF8 Op11 Sf5 Cr15
news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>.
<http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-02 23:40 +0100
Re: A way of displaying an active Script Dr.Kral@nyc.rr.com - 2012-04-03 14:58 -0400
Re: A way of displaying an active Script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-03 21:17 +0200
Re: A way of displaying an active Script John G Harris <john@nospam.demon.co.uk> - 2012-04-04 15:50 +0100
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-05 20:05 +0100
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-06 10:39 +0200
Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-06 15:03 +0000
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-06 21:20 +0200
Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-06 19:45 +0000
[OT] Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-06 22:39 +0200
Re: [OT] Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-06 22:18 +0000
Re: [OT] Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-07 00:40 +0200
Re: [OT] Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-07 02:33 +0200
Re: [OT] Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-07 19:25 +0100
Re: [OT] Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-08 07:38 +0000
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-07 19:20 +0100
Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-08 07:52 +0000
Re: A way of displaying an active Script Gene Wirchenko <genew@ocis.net> - 2012-04-03 12:44 -0700
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-04 20:30 +0100
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-05 01:16 +0200
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-06 21:42 +0100
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-07 01:11 +0200
Re: A way of displaying an active Script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-07 01:52 +0200
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-08 19:48 +0100
Re: A way of displaying an active Script "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-04-09 08:17 +0300
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-09 09:06 +0000
Re: A way of displaying an active Script John G Harris <john@nospam.demon.co.uk> - 2012-04-07 11:21 +0100
Re: A way of displaying an active Script Tim Streater <timstreater@greenbee.net> - 2012-04-07 12:26 +0100
Re: A way of displaying an active Script John G Harris <john@nospam.demon.co.uk> - 2012-04-07 15:16 +0100
csiph-web