That is because window has no method refresh. Use location.reload(true);
instead.
Edit: new code after comment on 2014-02-18 13:40
This code would do the trick:
$(document).ready(function() {
$('a.out').colorbox({
iframe: true,
opacity: 0.5,
scrolling: false,
width: '400px',
height: '300px',
transition: 'none',
onClosed: function() {
location.reload(true);
}
});
});