Reputation: 2851
Is it possible to load an entire HTML page (include the head which may have CSS/JS, etc...) into view using jQuery? I'd like to basically load a new page without refreshing the browser.
Thanks for any help.
Upvotes: 1
Views: 190
Reputation: 93
Aren't you looking for a single page application? If you look into a framework like AngularJS it will give you the control you need, although it's not that common to replace the whole page, just the stuff that needs to be changed (analog to a server side mvc solution with partial views or a master view).
You can always load JS on the fly if you need to.
Upvotes: 1