<!DOCTYPE html>
<html>
<head>
<script>
window.onload = function() {
    var msg = "document.referrer = " + document.referrer;
    top.postMessage(msg, "*");
}
</script>
</head>
<body>
Correct target.
</body>
</html>
