[Solved] display part of a webpage javascript [closed]


Sure. By js its possible. you create an xmlhttprequest, and put its response to a div. But ofcourse, same origin policy applies.

<div id="myDiv"></div>

<script type="text/javascript">

     var req = new XMLHttpRequest();
     var target="/mylocalsite.aspx";
     req.open( 'GET', encodeURI( target ), true );
     req.onreadystatechange = function () {
         if ( req.readyState == 4 ) {
             document.getElementById('myDiv').innerHTML = req.responseText;
         }
     };
         req.send( null );

</script>

But I’ll prefer an iframe

2

solved display part of a webpage javascript [closed]