@l3q your line 2 is wrong.
it should be:
$w("#html1").src = "https://";//do not connect to a real URL
meaning a string that doesn’t connect to the current site.
In other words, you should “empty” the src, wait 10 milliseconds and reconnect it to the desired url;