I was wondering how can I load HTML, which is hosted on a different domain?
I am using JavaScript, and want to create a bookmarklet that will enable me to parse the
You can make cross-domain requests from localhost, but if you plan to deploy this code to a server, it's not going to work. Since you are developing a bookmarklet, I think you can do this.
You'll need to use AJAX to get the remote HTML.
The jQuery library makes this task as simple as this...
$.get("http://www.google.com", function(html) { alert(html); });