JavaScript Archive

JavaScript – Execute Function After Page Loads – The Best Way!

A lot of people will shrug this off and just use jQuery’s $(document).load with jQuery. Well, sometimes you don’t want to use a whole library and want to use a standard JavaScript solution. You may be thinking then — okay, I’ll go ahead and use window.onload() Well, depending on what you are doing…that won’t work!

Internet Explorer 10 / IE11 – Drops Conditional Comments – Solutions

If you were expecting something good — sorry to disappoint you. This is a rant (though I tried to include some helpful code and a link for 2 methods of dealing with this). Regardless, IE10 dropping conditional comment support is OLD NEWS to many of you. When Internet Explorer 10 was released, Microsoft decided to

How to Fix: Internet Explorer YouTube Video Showing Above Fixed Element / Ignoring Z-Index

Internet Explorer has an issue? No way! Joking aside…Today I encountered an issue with YouTube iframes showing above a top-aligned, fixed navigation bar, which became obvious as you scrolled down the page and the video showed on top. This is not difficult to fix. You can modify the embed code pretty painlessly to get it