I need to import HTML file of any website on the choice of user using Javascript or jQuery into another file which i can run locally.
closed as not a real question by Gung Foo, undefined, Jan Dvorak, flavian, Mooseman May 27 at 11:38
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
You can use the jquery .load() function for that. Due to browser security restrictions, most "Ajax" requests are subject to the same origin policy; the request can not successfully retrieve data from a different domain, subdomain, or protocol. | |||||||||
|
The Same Origin Policy makes this tricky to accomplish, but you can do it by deploying a rewriting http proxy that will external pages appear as if they are coming from the same origin as your own page. Edit: About.com has a list of rewriting proxy servers. | ||||
|