To be fair, Java applets and the Flash plugin socialized that before Javascript tried to walk us back from the edge just a bit.
And before that, whatever Microsoft "macro" or embedded code variant was popular that week in all those document formats...