View Full Version : How can I detect a websites page source code?

05-08-2006, 02:26 PM
Assume my homepage has a button and a textbox. When I press the button, the textbox would show the page source code of www.google.com (or any other web page source code)

Of course, I haven't got the page source code before hand, or else I can just copy and paste the page source code to the textbox...

Would you please tell me how to use javascript to do that?