replace javascript:void with preventDefault