| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script type="text/javascript"> | 2 <script type="text/javascript"> |
| 3 | 3 |
| 4 function context_event(event) | 4 function context_event(event) |
| 5 { | 5 { |
| 6 if (window.event) | 6 if (window.event) |
| 7 { | 7 { |
| 8 event = window.event; | 8 event = window.event; |
| 9 } | 9 } |
| 10 var swallow = document.getElementById("swallow_context").checked; | 10 var swallow = document.getElementById("swallow_context").checked; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 <body oncontextmenu="return context_event(event)"> | 47 <body oncontextmenu="return context_event(event)"> |
| 48 <div>To activate context menu, right-click or ctrl-click anywhere on the page.</
div> | 48 <div>To activate context menu, right-click or ctrl-click anywhere on the page.</
div> |
| 49 <div> </div> | 49 <div> </div> |
| 50 <div><input type="checkbox" value="1" name="swallow_context" id="swallow_context
"> Prevent default context menu</div> | 50 <div><input type="checkbox" value="1" name="swallow_context" id="swallow_context
"> Prevent default context menu</div> |
| 51 <div> </div> | 51 <div> </div> |
| 52 <tt id="event_info" style='background-color:#eeeeee'> | 52 <tt id="event_info" style='background-color:#eeeeee'> |
| 53 -- No event captured -- | 53 -- No event captured -- |
| 54 </tt> | 54 </tt> |
| 55 </body> | 55 </body> |
| 56 </html> | 56 </html> |
| OLD | NEW |