Skip to content

Instantly share code, notes, and snippets.

@codeboxed codeboxed/index.html
Created Mar 26, 2011

What would you like to do?
Titanium Desktop event listeners
<body style="background-color:#1c1c1c;margin:0">
<div style="border-top:1px solid #404040">
<div style="color:#fff;;padding:10px">Welcome to Titanium</div>
<script type="text/javascript">
var eventName = 'randomEvent';
Titanium.API.addEventListener(eventName, function() {
alert(eventName+' fired!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.