var displayPrompt=true; if (displayPrompt){ event.returnValue = "are you sure to close?"; }
S
satigar123
@satigar123
Posts
-
show alert message when browser tab is closed -
javascript text box seletected texta small change javascript which u written is correct that's great document.getElementById('textboxid').focus() document.selection.createRange().text = mytext i hope it will work byee :)
-
Disable combouse javascript /// write this script function in Body or form tag function setcomboDisable() { document.getElementById('comboid').disabled="disabled" return false; } ///in page_load event buttonid1.Attributes.Add("onclick","if(setcomboDisable()==false){ return false;}else { return true;}"); okay i hope it will work :)
-
how to stop postback of asp button which is havin client side and serverside events....hi in javascript validation function write return false so it stops the page excution
-
Custom TreeViewhi great