Use your trusty Bug-Finding 9000 to pinpoint the exact location of the pesky bug.
Is it a pesky JavaScript error? A CSS catastrophe? A logic loop? Knowing what you're up against is key to squashing it.
For more on bug identification, see Identifying Bug Types
Grab your trusty Bug-Squashing Tool 3000 and go to town on that pesky bug.
Use your favorite debugging console to print out the error messages. It's like a digital treasure hunt!
Take a deep breath and rework your code to make it more robust and bug-free. It's like reorganizing your sock drawer, but with fewer socks.
Test, test, test! Make sure that bug is truly dead and buried.
For more on squashing JavaScript bugs, see JavaScript Bugs
For more on HTML/CSS bugs, see HTML/CSS Bugs
For more on logic bugs, see Logic Bugs
And for more on bug squashing in general, see Bug Squashing Tips and Tricks