Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	File size: 804 Bytes
			
			| 6bcb42f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>aegewg</title>
</head>
<body>
    
    <input type="text" id="url" placeholder="url">
    <button id="post">post msg</button>
    <script>
        
            const post = document.getElementById('post');
                const url = document.getElementById('url');
const gaga = document.createElement('iframe');
gaga.src = "./iframereceivetest.html";
gaga.width = 600;
gaga.height = 500;
document.body.appendChild(gaga);
    url.onchange = () => {
            gaga.src = url.value;
    };
    post.onclick = () => {
        gaga.contentWindow.postMessage({
            joe: 'oh my goodnees'
        }, "*");
    };
    </script>
</body>
</html> | 
