Sencha Ext.Msg.alert에서 클릭시 특정 페이지로 redirect

2024. 10. 20. 00:10Javascript/Sencha

Ext.Msg.alert('Warning', 'Session is expired!!', function() {
    // Redirect to a specific page after the user clicks 'OK'
    window.location.href = 'https://example.com/login';  // Change the URL to your desired page
});