tokuhirom
4/18/2011 - 5:53 PM

titanium-test.js

titanium-test.js

var homeDir = Titanium.Filesystem.getUserDirectory();
var mySampleFile = Titanium.Filesystem.getFile(homeDir, 'hacked.txt');
mySampleFile.write("all your base are belongs to us.");
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script type="text/javascript" src="titanium-test.js"></script>
<div style="font-size: 1000%">ALL YOUR BASE ARE BELONGS TO US.</div>
</body>
</html>