after many tries i managed to solve the problem with this code: $("#myframe").load(function(){
$(this).contents().find("p").text(); });
after many tries i managed to solve the problem with this code: $("#myframe").load(function(){
$(this).contents().find("p").text(); });