title: JS - Get Current Website Name (Similar To Safari)
body: <p>This is a tough one to explain, but I'll try my best! I'm programming my app in JavaScript, and I'm using the Titanium IDE.</p>
  
  <p>So, I'm trying to create a bookmarks menu for my app. I need it to essentially get the name/content header of the website, and that way the title of the bookmark will look decent, rather than just taking the direct route and cramming the Url of the website into the table.</p>
  
  <p>To give an example of what I'm talking about,</p>
  
  <p><img src="https://i.stack.imgur.com/xy60q.jpg" alt="Notice The Naming Of Each Bookmark"></p>
  
  <p>If you look, you can see that it says <code>Apple</code>, not <code>http://www.apple.com</code> or <code>apple.com</code>, and that's what I'm trying to replicate. If there's a function you might have or know a little about, please include it! Otherwise, any input is helpful!</p>
  
  <p>Thanks</p>
  
  <p><strong>UPDATE:</strong> I found a solution if I was using XCode, and also for Titanium, for those that are interested. I know that <code>document.title</code> is the key here, but running it in Titanium, however, it's a little different. I'll post my conclusions below!.</p>