HTML:
    <div id="browse-container">
      <input type="search" id="search-bar" placeholder="Search URL..."></input>
      <button id="search-button">Search</button>
    </div>
Above I have a search input where the user should be able to type in any URL.
Script:
    $('#search-button').click(function(){
      var HTMLresp = $('#search-bar').val();
      $.ajax({
          url: HTMLresp,
          dataType: "jsonp",
          type: 'GET'
      });
            $('body').append('<div id="result-window"></div>');        
            $("#result-window").html(HTMLresp); 
    });
Now when the user clicks on the button the specified url is to be placed in a variable 'HTMLresp' and then that URL should be placed inside of the ajax function. After ajax function is done the HTML response of the specified URL should be displayed in a the result window div on the page.
But right now the page just displays the string version of the URL.
 
    