I was looking at omegle.com
and noticed that when someone is typing, the title changes every half second from --Omegle--
to __Omegle__
or something similar. Is this in JavaScript? If so, how would I recreate somethin开发者_如何学运维g like this? No - NOT for homework. Just thought it was cool.
EDIT: I got it to happen once but I can't figure out how i would get it to occur regularly without a while(1 == 1)
thing.
in javascript
change document.title every half second
change the icon? i have never try .i will try it justnow!wait! i have try it ! but i can't achieve it!
They use a function which is called periodically by the browser in order to alter the document.title
, using window.setInterval
.
精彩评论