How to execute JavaScript after inserting into element.innerHTML automatically

Here is a scenario: you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function; you can insert any HTML tags including <script>; you can not call any JS function (software/component does not have such functionality), and inserted script using innerHTML is not executed automatically. After some lost time trying to come […]

Google AdWords (or any third party) tracking with onclick that really works

Disclaimer: this works for me and my clients today (Sep 2010). If Google or one on the web browsers change something, this may break all tracking, so use this on your own risk. Below is working code fragments. In the process of making the code work, there was following problems / symptoms: Chrome and Safari […]