I create a new window using JavaScript and create element in that window, when I try use that element by using id, I can't do that and take null value
var unit_Window = window.open("", '',"height=400,width=400,status=yes");
unit_Window.document.write("<label id='title_ID'>title</label></center>");
now when I tried to get title value using id the value return is null
unit_Window.document.getElementById('title_ID');