All of a sudden all my ok buttons in all my SharePoint sites started throwing javascript errors whenever they were clicked. For example, if I was in a SharePoint list and I wanted to add a new list item, it would break when I clicked ok.
I dug into the issue deeper by enabling javascript debugging in my IE browser, and noticed it was throwing an "Object Expected" javascript error:
Well, it didn't help any to debug it, but after wasting a few hours I figured out what was causing the problem. It turns out that I had added a script tag into the head of my master page. Nothing crazy about that, or so you'd think, but for some reason it needed to be well formed:
Breaks all the OK Buttons: <script type="text/javascript" src="/_layouts/ custom/custom.js" />
The Fix: <script type="text/javascript" src="/_layouts/custom/custom.js"></script>
I was blown away when I realized this was the problem. Maybe there were some javascript 101 topics I failed to learn in college or something… (either that or SharePoint 101)
Phil