You're creating an opening another window inside the window.js. Probably this is the problem. Try changing your window.js
file as follows
var childwindow=Ti.UI.currentWindow;
childwindow.backgroundColor = 'white'; //You may specify the same while creating the window
var btnhome=Ti.UI.createButton({
title : "HOME PAGE"
});
var lbltitle=Ti.UI.createLabel({
text : "This is child window",
font : {fontSize : "20%"} ,
top : "20%",
color : 'white'
});
//For adding event listener for detecting click on home page button
btnhome.addEventListener('click',function(e){
childwindow.close();
});
//Adding event listener for detcting back button click in android
childwindow.addEventListener('android:back', function (e) {
childwindow.close();
});
childwindow.add(lbltitle);
childwindow.add(btnhome);
Hope this will do the trick :)