If you are only using vi(m) in the console, this will work but you will have to hit enter once to get back to the html document within the editor:
nnoremap <F4> :exe '!"c:\Program Files\Mozilla Firefox\firefox.exe" %'<CR>
If you are using gvim, this will avoid having to hit enter that extra time:
nnoremap <F4> :exe ':silent !"c:\Program Files\Mozilla Firefox\firefox.exe" %'<CR>