alert notification
-
Hi all, here i am developing one website, in one page i have one application form if user fills the hal of the form and try to go to the next page then iwant to prompt a message saying "r u sure u want to leave the page" how to achiev this. Actually i have done the same thing for cancel button in the same page. if user trying to go to next page with out filling the page then how to achieve this. Thanks in advance
-
Hi all, here i am developing one website, in one page i have one application form if user fills the hal of the form and try to go to the next page then iwant to prompt a message saying "r u sure u want to leave the page" how to achiev this. Actually i have done the same thing for cancel button in the same page. if user trying to go to next page with out filling the page then how to achieve this. Thanks in advance
Say u have a button , that propagates u from one page to another, on the form load add the attributes for the onclick function, and write the function in the java scrpt , which will confirm from u , as u have already done before:)
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
-
Hi all, here i am developing one website, in one page i have one application form if user fills the hal of the form and try to go to the next page then iwant to prompt a message saying "r u sure u want to leave the page" how to achiev this. Actually i have done the same thing for cancel button in the same page. if user trying to go to next page with out filling the page then how to achieve this. Thanks in advance
Hi Use window.onbeforeunload in java script var flag =0; var needToConfirm = true; window.onbeforeunload = confirmExit; function confirmExit() { if (needToConfirm) { // check to see if any changes to the data entry fields have been made var elem = document.getElementById('<%= txtName.ClientID %>'); if(flag == 0 ) { if(elem !=null) { return ("are you want to leave?"); } } } }
rajesh