I explained here how to use the web viewer block to send data to .html file and receive data from .html file.