結果 : get id of active element javascript