Any one have IDEAS or SOLUTION ?
I have a funtion that will return the source code
of a location ... like a HREF ref or a file location
on a hard drive.
When called it will write the source code to a new
window .. typically the default editor's window...
in my case that is NOTEPAD.
I want to redirect this code to a textarea or variable
on the page that calls the function.
or if not possible .... then a way to read and retrieve
the contents of the open NOTEPAD window that contains
the source code of the supplied reference.
Any GREAT Ideas would be appreciated. I have racked my
brain and read HTML and javascript references till I am
crosseyed.
HELP !! THANKS -- Jim
Here is the code :
// ***********************************************
// AUTHOR: LLC
// URL: // Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( )
// ***********************************************
function viewSource() {
var test = document.txtHtml.source1.value;
document.location = "view-source:" + test;
}
// ***********************************************
This is the FORM and button i use to call the function :
<form name="txtHtml">
<input type="text" name="source1" value="<input type="button" onClick="viewSource()" value="View Source">
</form>
I have a funtion that will return the source code
of a location ... like a HREF ref or a file location
on a hard drive.
When called it will write the source code to a new
window .. typically the default editor's window...
in my case that is NOTEPAD.
I want to redirect this code to a textarea or variable
on the page that calls the function.
or if not possible .... then a way to read and retrieve
the contents of the open NOTEPAD window that contains
the source code of the supplied reference.
Any GREAT Ideas would be appreciated. I have racked my
brain and read HTML and javascript references till I am
crosseyed.
HELP !! THANKS -- Jim
Here is the code :
// ***********************************************
// AUTHOR: LLC
// URL: // Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( )
// ***********************************************
function viewSource() {
var test = document.txtHtml.source1.value;
document.location = "view-source:" + test;
}
// ***********************************************
This is the FORM and button i use to call the function :
<form name="txtHtml">
<input type="text" name="source1" value="<input type="button" onClick="viewSource()" value="View Source">
</form>