How can I get html source code from an external web page?
Something like: getHtml(\'http://google.com\');
.
I\'ve tried to get content of iframe
i think using javascript xmlhttprequest with setRequestHeader('content-type','xml/text') and the url what u need it will return the responseText as the html of the page
With javascript, getting the file contents from another domain is not allowed in many browsers for security reasons. In php, you'd have to utilize curl.
For a workaround, you can make a php script with curl on your local domain and call that with javascript.
Cross domain? not possible without a server process. If you are on windows and can use HTA you can use the iframe