mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:32:44 +00:00 
			
		
		
		
	LibWeb: Handle javascript: URLs inside LibWeb :^)
This patch makes it possible to execute JavaScript by clicking on an anchor element with href="javascript:your_script_here()".
This commit is contained in:
		
							parent
							
								
									5e40aa182b
								
							
						
					
					
						commit
						9b0bfcb8b7
					
				
					 4 changed files with 31 additions and 2 deletions
				
			
		|  | @ -121,6 +121,8 @@ public: | |||
| 
 | ||||
|     JS::Interpreter& interpreter(); | ||||
| 
 | ||||
|     JS::Value run_javascript(const StringView&); | ||||
| 
 | ||||
| private: | ||||
|     virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling