Why cant I load an external resource from jQuery load method?

前端 未结 6 1273
星月不相逢
星月不相逢 2020-11-27 21:43

In the process of learning Ajax requests using jQuery, I tried to load google home page on the click of a link. So I wrote something like:

$(\"#ajax\").click         


        
6条回答
  •  广开言路
    2020-11-27 22:27

    This is due to security. You can read all about it along with a solution over at yahoo.

提交回复
热议问题