Jay
Jay

Reputation: 153

load() not working

I am converting frames to div. I am using jQuery's load() for this but it is giving me an error which I am not able to solve. Below is the code which I am getting the error. Please help.

$('#abc').load('https://www.google.co.in/');
#abc {
    width: 300px;
    height: 300px;
    border: 1px solid red;
    overflow: auto;
}
<div id="abc"></div>

Codepen Code

Upvotes: 2

Views: 79

Answers (1)

Dipanwita Kundu
Dipanwita Kundu

Reputation: 1667

You can load file of same domain.Cross domain loading is not possible.

Upvotes: 1

Related Questions