Example 1

Simple URL retrieval and display.

Return home


This example allows the user to enter a URL, which is then retrieved and displayed in a <span>. This demonstrates that what is retrieved is NOT treated as an HTML document but rather a simple stream of data, hence the document is not parsed and page events don't fire, images don't get retrieved, etc.

Note that you will get a security warning if the domain you are accessing is not the same as this example (which I assume it won't be). In fact, some browsers will not allow this (Firefox), while others will with a warning (IE).


Retrieved content will be displayed here