dcone%netscape.com ca0eaa3250 plug-in example for dumping the frames for a single web page. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@121447 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 03:15:08 +00:00

66 lines
1.0 KiB
HTML

<HTML>
<HEAD>
<TITLE>Debug Plug-in Test</TITLE>
</HEAD>
<BODY>
<center>
<h1> XPConnect Scriptable Debug Plug-in </h1>
</center>
<br><br>
<center>
<embed type="application/debug-plugin" width=1 height=1 hidden="true"><br>
<script>
var embed = document.embeds[0];
var started = false;
var theWindow;
var outputfilename;
function crap()
{
alert("another function");
}
function DumpFrames(firsttime,filename)
{
var loadingFlag;
if ( firsttime ) {
alert("opening the document");
theWindow = window.open(filename,"dumpwindow");
outputfilename = filename.replace (".html",".tst");
}
loading = embed.DumpLayout(theWindow,"s:/tests","outputfilename");
if (loading != 0) {
window.setTimeout("DumpFrames(false)",5000);
alert("Waiting");
} else {
//theWindow.close();
alert("successful");
}
}
</script>
<br>
<form name="baseform">
<input type="text" name="urlname">
<input type=button value="DumpFrames" onclick='DumpFrames(true,document.baseform.urlname.value)'>
</form>
</center>
</BODY>
</HTML>