JavaScript Snippets

Feel free to reuse wherever desired. I had to pick goldenrod as background color for the code blocks because all other major colours made at least one type of code operator / keyword invisible or hard to read.

.ogg sound files are not supported in Trident / Microsoft Edge, Internet Explorer and Safari. This code detects those browsers and if they are used, replaces Ogg Sound Players with a message informing them of the situation.

Internet Explorer is the bane of webdesign, in that many features from other browsers are unsupported in it and that it is home to dozens of glitches, bugs and other oddities as result due to its primitive and different structure when compared to other browsers. This code fixes some of these oversights.

There are still some browser versions that don't support  (somehow). Here we fix that and make the function for those grandpas.