Just use javascript:void(0) instead of # for href

You might encounter this error most likely in Firefox Console