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 -

Installing croogo for cakephp -