Forum Moderators: open
I have a rather complex javascript which builds some nice looking menus, but I need to find out the HTML code that the JS uses to do it.
Now I am prepared to go through the entire JS peicing together the HTML bit by bit, but I was wondering if there was a browser or tool that displays what the javascript outputs rather than the javascript itself.
TIA
Allen
It's probably just the ambiguous tip: Most versions support it. However, to view URI [example.com,...] type the following into the address bar.
view-source:http://www.example.com
This has worked for me an all 4.x versions.
Jim
str = '<html>...'
Check_Str(str)
function Check_Str(str) {
fso = new ActiveXObject('Scripting.FileSystemObject')
thefile = 'c:\\My Documents\\test.txt'
var TristateFalse = 0
var ForWriting = 2
fso.CreateTextFile(thefile)
a = fso.GetFile(thefile)
b = a.OpenAsTextStream(ForWriting, TristateFalse)
b.Write(str)
b.Close()
alert('function stopped, go check file, come back and click "ok", the file will be deleted')
c = fso.GetFile(thefile)
c.Delete()
}
If you don't want the file deleted you can remove everything after and including the alert.