Copy link to clipboard
Copied
Hi,
Im trying to make a pop up window.alert appear only in my mobile breakpoints, however even when I hide in other breakpoints - the pop up alert appears in all of them when published. Any ideas how to hide html window.alert pop ups in other break points so that the code is only fired within specific breakpoints?
code used:
<script>
window.alert("message here...");
</script>
In my knowledge, I do not think <script> can be used in conditional way or based on breakpoint unless you are using adaptive/alternate layout.
Copy link to clipboard
Copied
In my knowledge, I do not think <script> can be used in conditional way or based on breakpoint unless you are using adaptive/alternate layout.
Copy link to clipboard
Copied
you can make an alt phone layout... then run your script in that