| 
									
										
										
										
											2013-09-02 16:28:36 +08:00
										 |  |  | <html> | 
					
						
							|  |  |  | <body> | 
					
						
							|  |  |  | <script type="text/javascript" charset="utf-8"> | 
					
						
							|  |  |  |   window.onbeforeunload = function() { | 
					
						
							| 
									
										
										
										
											2013-09-02 16:46:08 +08:00
										 |  |  |     setTimeout(function() { | 
					
						
							| 
									
										
										
										
											2013-09-02 16:28:36 +08:00
										 |  |  |       require('remote').getCurrentWindow().emit('onbeforeunload'); | 
					
						
							| 
									
										
										
										
											2013-09-02 16:46:08 +08:00
										 |  |  |     }, 0); | 
					
						
							| 
									
										
										
										
											2013-09-02 16:28:36 +08:00
										 |  |  |     return 'string'; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   window.close(); | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | </body> | 
					
						
							|  |  |  | </html> |