Ticket #4618: onbeforeunload.html
File onbeforeunload.html, 512 bytes (added by , 16 years ago) |
---|
Line | |
---|---|
1 | <html> |
2 | <head> |
3 | <script type="text/javascript" src="http://ckeditor.com/apps/ckeditor/3.0.1/ckeditor.js"></script> |
4 | <script type="text/javascript"> |
5 | window.onbeforeunload = function(){ |
6 | return 'Notice that when pressing either OK or Cancel the page itself doesn\'t change'; |
7 | }; |
8 | </script> |
9 | </head> |
10 | <body> |
11 | <textarea cols="50" rows="5" id="editor1" name="editor1">Insert icon here</textarea> |
12 | <script type="text/javascript"> |
13 | CKEDITOR.replace('editor1'); |
14 | </script> |
15 | </body> |
16 | </html> |