<script>
onpageshow = function(e) {
  opener[location.search.split('?')[1]](e);
}
</script>