| 
									
										
										
										
											2019-11-18 18:18:28 -08:00
										 |  |  | <style> | 
					
						
							|  |  |  | body { | 
					
						
							|  |  |  |     display: flex; | 
					
						
							| 
									
										
										
										
											2019-12-06 15:10:30 -08:00
										 |  |  |     height: 500px; | 
					
						
							| 
									
										
										
										
											2019-12-05 09:54:50 -08:00
										 |  |  |     margin: 8px; | 
					
						
							| 
									
										
										
										
											2019-11-18 18:18:28 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | body iframe { | 
					
						
							|  |  |  |     flex-grow: 1; | 
					
						
							|  |  |  |     flex-shrink: 1; | 
					
						
							| 
									
										
										
										
											2019-12-06 15:10:30 -08:00
										 |  |  |     border: 0; | 
					
						
							|  |  |  |     background-color: green; | 
					
						
							| 
									
										
										
										
											2019-11-18 18:18:28 -08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2019-12-06 15:10:30 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-18 18:18:28 -08:00
										 |  |  | ::-webkit-scrollbar{ | 
					
						
							|  |  |  |     display: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | </style> | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | async function attachFrame(frameId, url) { | 
					
						
							|  |  |  |     var frame = document.createElement('iframe'); | 
					
						
							|  |  |  |     frame.src = url; | 
					
						
							|  |  |  |     frame.id = frameId; | 
					
						
							|  |  |  |     document.body.appendChild(frame); | 
					
						
							|  |  |  |     await new Promise(x => frame.onload = x); | 
					
						
							|  |  |  |     return 'kazakh'; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | <iframe src='./two-frames.html' name='2frames'></iframe> | 
					
						
							|  |  |  | <iframe src='./frame.html' name='aframe'></iframe> |