रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > डायलॉग > सूचना
डायलॉग.alert() फ़ंक्शन
window.alert() के साथ रैपर जिसे ऐप्लिकेशन डेवलपर, मॉडल ब्राउज़र विंडो के विकल्प देने के लिए setAlert के ज़रिए बदल सकते हैं.
हस्ताक्षर:
export declare function alert(message: string, opt_callback?: () => void): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
मैसेज |
स्ट्रिंग |
उपयोगकर्ता को दिखाया जाने वाला मैसेज. |
opt_callback |
() => अमान्य |
(ज़रूरी नहीं) सूचना खारिज होने पर कॉलबैक. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया."],[[["`dialog.alert()` provides a way to display alert messages to the user, similar to the browser's built-in `window.alert()`."],["Developers can customize the alert behavior by overriding the `setAlert` function."],["The function takes the alert message as a required parameter and an optional callback function to execute after the alert is dismissed."]]],["The `dialog.alert()` function displays a message to the user, mimicking the behavior of `window.alert()`. It accepts a string `message` as input, which is the text shown to the user. Optionally, a callback function `opt_callback` can be provided, which is executed when the alert is dismissed. App developers can replace this function with a custom implementation using `setAlert`. The function does not return any value.\n"]]