I have this sample I found to hide a mailto and address with JS.
I can bring it into my WB page via <HTML> tool but can not seem to center it in the layergrid?
The script is:
<script language="JavaScript" type="text/javascript">
var part1 = "info";
var part2 = Math.pow(2,6);
var part3 = String.fromCharCode(part2);
var part4 = "address.com";
var part5 = part1 + String.fromCharCode(part2) + part4;
document.write("Please email us at <a href=" + "mai" + "lto" + ":"
+ part5 + ">" + part1 + part3 + part4 + "</a>.");
</script>
Lasa
Trying to use JS to hide email
- wwonderfull
-
- Posts: 1566
- Joined: Fri Aug 21, 2020 8:27 am
- Contact:
Re: Trying to use JS to hide email
If the html object uses DIV then you can put the Grid System: to Flexbox or CSSGRID and the Columns option to vertical and horizontal "center".
Pardons, but custom scripts are not a part of any service until helped voluntarily.
Pardons, but custom scripts are not a part of any service until helped voluntarily.
Re: Trying to use JS to hide email
Understood and much apricated.
Lasa
Lasa