Hi Guys,
Sorry if I have missed a similar thread but I cannot find one to match my problem.
In WD I have created a button marked "Contact me" . In web properties I have selected Link to Anchor on the Link Tab, and in the Placeholder Tab I have selected Replace with HTML code. This code is a Javascript to hide my email address:
<script language="javascript" type="text/javascript">
<!--
var name = "john";
var domain = "xxxxxx.co.uk";
document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
document.write(name + '@' + domain + '<\a>'); // -->
</script>
When I publish to web, the button dissapears and shows just my email address, xxxxxx.co.uk. Clicking does bring up my mail client, but why does the button disappear ?
Help appreciated, I think I'm missing something obvious here ??
John
Happy New Year to you all as well !!
Bookmarks