mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:52:43 +00:00 
			
		
		
		
	 6c1944ee61
			
		
	
	
		6c1944ee61
		
	
	
	
	
		
			
			We now populate the navigation history entries in the navigation API and fire more navigation events as appropriate.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			484 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			484 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         let n = window.navigation;
 | |
| 
 | |
|         let len = n.entries().length;
 | |
| 
 | |
|         println(`entries[length - 1] is current entry: ${n.entries()[len - 1] === n.currentEntry}`);
 | |
|         println(`currentEntry is a ${n.currentEntry}`);
 | |
| 
 | |
|         println(`transition is null: ${n.transition == null}`);
 | |
|         println(`canGoBack: ${n.canGoBack}`);
 | |
|         println(`canGoForward: ${n.canGoForward}`);       
 | |
|     });
 | |
| </script>
 |