Albert Spencil wrote:
It once was necessary to type "view-source" before the URL in Location
to view the javascript original coding for Netscape. The default was
the output code of
the script. Now the default is the original script code. Is there a
way to see the original coding in Netscape 7x and/or IE 6x without
falling back to an old version of NS ?
That is,when I "view source" I want to see:
<body>
Most cats have fur
</body>
Rather than:
<body>
<script language='javascript'>
var message='Most cats have fur';
document.write(message);
</script>
</body>
With Netscape 7.1 or Mozilla you can use Ctrl-A to select all the
displayed page content and then use view selection source in the context
menu, you will get the both the script elements and the output they have
produced that way.
Netscape/Mozilla also have the DOM inspector which doesn't show
serialized source code but a tree view of the document which is very
helpful. Again you will see both a script elements and its output in
that view.
For IE you could use a bookmarklet e.g.
javascript
: alert(document.documentElement.outerHTML); void 0
Of course with both browsers dynamic manipulation of the document is
possible without using document.write and even after the page has been
loaded so what the above ways show is a current snapshot.
--
Martin Honnen
http://JavaScript.FAQTs.com/