The question is, how the solution looks like, in case of such a URL. Use your browsers network inspector, jsonp is not being returned. Users can use getElementById() method to access HTML element using the id. . Example: The following example demonstrates to include separate HTML file into existing document. I would like to dynamically retrieve the html contents from another website, I have the permission of the company. Thanks for contributing an answer to Stack Overflow! $.get("https://kimconnect.com/", function(data){ HTML elements can be retrieved using CSS selectors in two ways. This URL has a simple TXT format, just a pure numbers, but updated 4-5 per sec. Best practice for sanitizing HTML is to use an HTML sanitization library or a template engine with HTML sanitization features. Hey Chris, thank you so much for all the quick feedback. You can consider all the meta element in an HTML file as an array and can access them by specifying the index of the meta tag. This saves processing power and improves . Example: This example demonstrates the use of the getElementsById method. Parameter: It takes the name of the element which the user wants to access. Do you have access to any server-side language? Are you sure you want to hide this comment? dat javascript target img src. Receives 'url' param. How to set the default value for an HTML