I've never done this, so my answer is purely theoretical (don't ask for details).
Since MJPEG is basically a sequence of stand-alone JPEG images, one way of doing it (once you have the Server-side code that sends a static JPEG from a Webcam) would be to use JavaScript with HTML to implement an event loop inside a Browser, which would keep loading that JPEG from the Server, then painting it on the HTML canvas, or replacing the contents of an image element.
If you need help with HTML and JavaScript, try searching for "MJPEG JavaScript" with
www.google.com or
www.duckduckgo.com or any another search engine of your choice.
Best Regards,
Danijel Tkalcec