Загрузка исходного кода страницы для Internet Explorer
получаем исходный код страницы в текстовой области таким образом:
<html xmlns:IE> <head> <title>Download pages</title> <script language="JavaScript" type="text/javascript"> <!-- function onDownloadDone( code ) { sourcecode.value = code; } //--> </script> </head> <body> <!--[if gte IE 5]> <IE:Download id="oDownload" style="behavior:url(#default#download)" /> <a href="javascript:oDownload.startDownload( '/javascript/examples/getsource.html', onDownloadDone)">Download</a> <textarea cols="30" rows="20" id="sourcecode"></textarea> <![endif]--> </body> </html>
Примечание: код работает только в Internet Explorer