Empty string passed to getElementById() bootstrap dropdown menu Just use javascript:void(0) instead of # for href You might encounter this error most likely in Firefox Console