var b = new AssetPickerConfig(""); b.ClientID = ""; b.DefaultAssetLocation = ""; b.DefaultAssetImageLocation = ""; b.CurrentWebBaseUrl = ""; b.AllowExternalUrls = ""; b.ManageHyperlink = false; b.AssetUrlClientID = ""; b.ReturnCallback = function(f, e, d, b) { alert(); }; var h = new ImageAsset(""); h.LaunchModalAssetPicker(b)