Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html><head>
<title> TC component </title>
</head>
<body>
<p>This page should appear in popup or frame</p>
<script type="text/javascript">
var target = opener || top;
var id = location.search?' '+location.search.substring(1) : '';
target.log('frame/popup script'+id);
window.onload=function(){
target.log('load event inside frame/popup script'+id);
target.postMessage('msg evt frame/popup script'+id, '*');
}
</script>
</body></html>