Originally Posted by Old Pedant
If you want it to be invisible when JS is disabled, then be sure to specify
<div id="myDiv" style="display: none;">
(If you want it visible when JS is disabled, do nothing. It will be.)
Well, then it is hidden/visible whether they have come from another website or not.