load a URL into a DIV, change the URL after page is loaded
Posted on 2011-05-12
I'm a jQuery beginner, so not sure about this. I want to have a DIV that loads the contents of a (local) .HTML document. When a certain event occurs on the page, I want to remove that content and load a different URL without reloading the whole page. This is possible?
Also, assuming it is possible, would the contents of the DIV (the HTML loaded via the URL) accept the styles of the containing page? Or must all styling be done in the file which is being loaded into the DIV?