When I try to do anything in onload()
function of pop up window, it doesn't show up in opera
. But it is working fine in all other browsers.
In the below code, I was trying to fill a div
in the pop up on onload
.
<script>
var title=$('#title').val();
var content=CKEDITOR.instances['editor'].getData();
var popup = window.open("<?php echo site_url('/index'); ?>",'pop up','width=1100,height=600,scrollbars=1');
popup.onload = function(){
$('#content', popup.document).html(content);
$('.title', popup.document).html(title);
}
</script>
Can anyone please tell me any solution?