I want to show external url(like 'https://google.com') in div widthout using iframe. So referenced this.
<div>
<object type="text/html" data="http://validator.w3.org/" width="800px" height="600px"
style="overflow:scroll; border:5px ridge blue">
</object>
</div>
It is working well, but when I change data attr to what I want url(ex: 'https://www.google.com'),
it is not working. The area shows nothing. (also, .load()
not working)
<div>
<object type="text/html" data="https://www.google.com/" width="800px" height="600px"
style="overflow:scroll; border:5px ridge blue">
</object>
</div>
I use this.
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
I want a solution to this problem. and if the solution is different in control through jquery, i would like to know that as well. I have been wandering for five hours about this. Please help me.