javascript - Add a space to the browser-tab title -


i have robust title web-crawlers etc... l.a. takedown // band - bla bla... ~ style - want cool looking page title. want favicon la logo...

i create new title page... nerd alert

var newtitle = ' takedown';

then, inserting this...

document.title = newtitle;

then this: enter image description here

i pleased this... love little space before 'takedown' string / should understand in general...

it seems strings this: http://codepen.io/sheriffderek/pen/yxxyqq ( mean... strip space @ beginning , end)

but can add   , replace spaces markup... document / browser tab isn't down that...

so, why string having it's spaces stripped... '__takedown' - , how can force space in there... ??? - in non-markup situation?

here codepen breakdown of ideas far... , @moogs idea works in theory --- tab still doesn't reflect though spaces appear in head seen here ->

enter image description here

if answer "the space doesn't matter - it's fine how is..." or that.. save time , don't reply. example.


want happen... enter image description here

looks browsers trim leading white space characters, unicode 205f medium mathematical space character seems work:

document.title = '​​\u205f​​​ takedown'; 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -