Open popup window and close with timer
Hi, I'm using a popup frame to display a video. It works but I want it to automatically close once the video is done playing (which is 23sec). What am I doing wrong?
- setTimeout(function() {
$('#companyVideo').trigger('click');
window.parent.$('#companyVideo').dialog('close'), 23000
}
);