संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > डायलॉग > सूचना
डायलॉग.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 एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["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"]]