JavaScript Programming JavaScript > Code Examples Add Desktop Component Add Desktop Component <html> <head> <title>Happy Codings :-) JavaScript - Learn Web Development</title> <script language="JavaScript"> function function1() { window.external.AddDesktopComponent("http://www.happycodings.com/images/HappyCodings.png", "image", 150, 150, 95, 95); } </script> </head> <body> <button onclick="function1();">Click here to add the new active desktop component </button> </body> </html>