I am all the time actually excited to see new strategies on JavaScript primitives. These additions are acknowledgement that the language must evolve and that we’re doing thrilling new issues. That being stated, I by some means simply found some legacy String strategies that you just most likely should not use however have existed perpetually. Let’s have a look!
These legacy string strategies take a fundamental string of textual content and wrap it in a HTML tag of the identical title:
"Hiya".huge() // "<huge>Hiya</huge>" "Hiya".blink() // "<blink>Hiya</blink>" "Hiya".daring() // "<b>Hiya</b>" "Hiya".italics() // "<i>Hiya</i>" "Hiya".hyperlink("https://davidwalsh.title") // "<a href="https://davidwalsh.title">Hiya</a>"
Native prototypes do not often take away strategies and for good purpose — they’ll break web sites! I am shocked I did not find out about these strategies earlier than immediately. It is all the time enjoyable to see relics of the online previous although!
Ship Textual content Messages with PHP
Youngsters as of late, I inform ya. All they care about is the know-how. The video video games. The bottled water. Oh, and the texting, all the time the texting. Again in my day, all we had was…OK, I had all of this stuff too. However I nonetheless do not get…
Web page Visibility API
One occasion that is all the time been missing throughout the doc is a sign for when the consumer is a given tab, or one other tab. When does the consumer change off our website to have a look at one thing else? When do they arrive again?
Fixing sIFR Printing with CSS and MooTools
Whereas I am not an enormous sIFR advocate I can perceive its attract. A buyer not too long ago requested us to implement sIFR on their web site however I bumped into an issue: the sIFR headings would not print as a result of they had been Flash objects. Here is tips on how to repair…