daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest May 16th, 2018 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4.     <title>Window Close Test</title>
  5.     <style>
  6.         body {
  7.             background-color: #000;
  8.             color: white;
  9.             font-weight: bold;
  10.             font-size: 20px;
  11.         }
  12.     </style>
  13. </head>
  14. <body>
  15.     <p>Testing New Window Close</p>
  16.     <p>Now use the Android Menu key and click the Add button.</p>
  17.     <script>
  18.  
  19.         var menu = Titanium.UI.createMenu();
  20.  
  21.         menu.addItem("New Window", function() {
  22.             var win = Titanium.UI.createWindow({ url: 'test.html' });
  23.             win.open();
  24.         }, Titanium.UI.Android.SystemIcon.ADD);
  25.  
  26.         Titanium.UI.setMenu(menu);
  27.  
  28.        
  29.     </script>
  30. </body>
  31. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top