volksman
03-04-2005, 09:20 AM
Ok. I've been looking all night and can't find the answer. This may be impossible but I don't think it is:
I want to use a javascript to pass the page source of an HTML document to a CGI script.
All I need to find out is how do I assign the current page's source to a variable in javascript?
I mean I know I can do something like:
var t = document.title;
And that gets me the title of the page. But how do I just get a dump of the document source?
Is there a way?
Any help would be very much appreciated!
I want to use a javascript to pass the page source of an HTML document to a CGI script.
All I need to find out is how do I assign the current page's source to a variable in javascript?
I mean I know I can do something like:
var t = document.title;
And that gets me the title of the page. But how do I just get a dump of the document source?
Is there a way?
Any help would be very much appreciated!