Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title>Window Close Test</title>
- <style>
- body {
- background-color: #000;
- color: white;
- font-weight: bold;
- font-size: 20px;
- }
- </style>
- </head>
- <body>
- <p>Testing New Window Close</p>
- <p>Now use the Android Menu key and click the Add button.</p>
- <script>
- var menu = Titanium.UI.createMenu();
- menu.addItem("New Window", function() {
- var win = Titanium.UI.createWindow({ url: 'test.html' });
- win.open();
- }, Titanium.UI.Android.SystemIcon.ADD);
- Titanium.UI.setMenu(menu);
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment