Home » questions » In Javascript i want to Get the Page Source, and store it in a Variable?

In Javascript i want to Get the Page Source, and store it in a Variable?

2006-07-31 16:10:06, Category: Programming & Design
I want to Store the page source in a variable and pass it via PLSQL, is there a JS function to get page source??

Answers

  1. [Ayoob]

    On 2006-07-31 20:58:14


    Hi, I'm not so good in Javascript, but i know how to store the page source but without the "header",,, here is example:- _____________________________ Your Title Your Page Source Here _____________________________ if you want to add the tag "" and "" just replace ".innerHTML" with ".outerHTML" and if you want to get the title titleVariable = document.title; for more info about document properties go to http://www.w3schools.com/htmldom/dom_obj_document.asp you can get text color and backgound color etc..