javascript - Want to set alert on browser close button. share your idea -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 3 जवाब

    असल में यदि सत्र चालू हो रहा है और उपयोगकर्ता सीधे ब्राउज़र बंद करें बटन को बंद करता है तो यह कुछ अलर्ट दिखाता है और उस चेतावनी को देखते हुए वह चेतावनी जारी रख सकता है या रद्द कर सकता है।

      खिड़की .onbeforeunload = confirmExit ; फ़ंक्शन की पुष्टि करेंएक्सिट () {वापसी की पुष्टि करें ("एक बटन दबाएं!"); }    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -