Skip to content

Truly independent web browser

427 B
Raw Blame
<!DOCTYPE html>
<input type="image" src="../../Assets/120.png" value="120.png" width="120" height="120" />
<script type="text/javascript">
    document.addEventListener("DOMContentLoaded", () => {
        let input = document.querySelector("input");
        // Style the image button first, so the change of type has to drop its width and height hints.
        input.offsetWidth;
        input.type = "text";
    });
</script>