Refresh iframe whenever button is pressed

Hi, I have embedded a local port as an iFrame source. Whenever the input button is pressed, I will kill and start the local port server which I have embedded into the iframe. I need to automatically reload this IFrame based on the button execution. As of now, I’m right-clicking and frame and reloading the frame alone.