DIV behave like an IFRAME & load url using ajax for a web application having many forms/web pages loading each form/webpages dynamically
A:
A div can't behave exactly like an IFrame - An IFrame has it's own javascript environment, but a div shares the environment with the parent window.
However, you can make an ajax request to a url, and insert the response into a div.
I suggest using jQuery, they have a simple function $.get(url) for this.
Mike Blandford
2009-09-17 20:53:06