dAivEd Posted March 31, 2009 Report Share Posted March 31, 2009 Bija kautkur tāda forma kad nospiež linku, un izlec logs un paprasa, vai tiešam jūs gribat izdzest ? un atbildes OK vai Cancel ja nospiež ok, tad iet talāk ja nospiež cancel tad neko nedara. Quote Link to comment Share on other sites More sharing options...
impulzz Posted March 31, 2009 Report Share Posted March 31, 2009 Ja pareizi atceros no galvas, tad kaut kā šādi bija: onclick="return confirm('Vai esi pārliecināts, ka vēlies dzēst?') Quote Link to comment Share on other sites More sharing options...
marcis Posted April 1, 2009 Report Share Posted April 1, 2009 Pareizi atceries. Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 1, 2009 Report Share Posted April 1, 2009 <html> <head> <script type="text/javascript"> <!-- function confirmation() { var answer = confirm("Leave xxx.com?") if (answer){ alert("Bye bye!") window.location = "http://www.google.com/"; } else{ alert("Thanks for sticking around!") } } //--> </script> </head> <body> <form> <input type="button" onclick="confirmation()" value="Leave xxx.com"> </form> </body> </html> No pirmas lapas par sho temu ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.