When I check a script I use the alert to see if the code is working, such as "Current tag is body".
Is there a function that outputs alert results to a file? For example, a way to send to a file all
of the paragraph tags that are used in a document. (The actual code could be a loop). I could
use this as a start to produce what I really want, an array of all the valid tags, and then print to a file
a list of all the "rogue" tags that are not in the valid list