External.AddDesktopComponent

JavaScript -> Objekty -> External -> metóda AddDesktopComponent

Syntax

window.external.AddDesktopComponent(param1, param2, param3, param4, param5, param6)

Popis

Príkaz jazyka JavaScript
Inserts a web page or image into the active desktop.



Príklad

<html>
<head>
<script language="JavaScript">
    function function1() {
        Window.External.AddDesktopComponent("http://www.java2s.com/style/logo.png","image", 150, 150, 95, 95);
    }
</script>
</head>
<body>
<button onclick="function1();">Click here to add the new active desktop component</button>
</body>
</html>