JQuery's $("#div").html() opens new page
<p>I frequently use JQuery's $("#div").html() function to insert code into a specific div but this time, at the point the code has been inserted into the div, it displays a whole new page with the content that should be inside the div, new head, new body, etc.</p>

<p>The code I insert contains some html+javascript. Is it probably caused by a referrer or something like that? any suggestions on how to overcome this problem?</p>

<p>Thanks a lot for your help!
Best regards</p>
