MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 208 forks source link

How is the window title set? #48

Open asgeo1 opened 12 years ago

asgeo1 commented 12 years ago

I'm using macgap to wrap a jQuery mobile app.

When I browse to different pages, the window title is set to the title of the html page.

How is that done in macgap? I'm looking through the code, and I can't see it anywhere.

I would basically like to turn that functionality off, because it keeps overwriting my custom window title.

ckizer commented 11 years ago

Set the html tag with javascript…</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/ckizer"><img src="https://avatars.githubusercontent.com/u/191738?v=4" />ckizer</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <pre><code class="language-javascript"><script> document.title = 'blah'; </script></code></pre> <p>Or you can change it forever by going into Xcode, and changing the default window title <img src="https://f.cloud.github.com/assets/191738/403553/44ab30fc-a923-11e2-9220-36cebc41118f.png" alt="Screen Shot 2013-04-19 at 2 57 48 PM" /></p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>