WebMenuBar if confirm click then action

2 replies. Last post: December 12, 2011 6:49 PM by Adam Potomski
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi 


I have problem with WebMenu. I add item with tag "close". i want to write function that if the user click this buton i show confirm dialog and if true i close the application i other case i back without action. I have write function that works when i open the target location but i can't cancel click action. How can i this doing? Behind my function.


function MainMenu(Param2) {
    switch (Param2.Name) {
        case "start":
            window.location = "Default.aspx";
            break;
        case "close":
            if (confirm("Are you sure? ")) {
                window.close();
                return true;
            } ;
            Param2.Pushed = false;
            break;
    }
}

Thank you for help

regards Adam

All times are GMT -5. The time now is 6:28 PM.
Previous Next