OK, thanks for the advice!
I've now turned my script definition (within <head></head>) to
<script language="javascript" src="gcmemail.js"></script>
Unfortunately, now when I then call it within the page it doesn't return anything. Do I have my syntaxt wrong for the call...
adam0101
Sorry, I'm not clear on that. Are you saying that it would be better to include it in each page, link to it, ot that it doesn't make any difference?
Hmm
Yes, I think I agree with you. One concern I had was that by linking it I would be (in effect) opening another connection to the server, but if it is coded on each html page I don't have that overhead.
Robert
HellTel
Someone has suggested that if I am using this script in multiple pages that I should use
<SCRIPT TYPE="JavaScript" SRC="yourScript.js">
</SCRIPT>
Given the small size of this script, what do you think?
Robert
The page loads, but doesn't give the desired result:
I get the warning
Line: 18
Char: 1
Error: Object Expected
Code: 0
This is my complete page:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>mailto generation test</title>
<!--
<script...
Thanks for the reply.
Where should I define the function - in the <head> section?
How I call the function within my main html page (so that it generates the appropriate anchor)?
Robert
Hi!
Firstly, I'm not a JavaScript programmer, so hence the request for help!
I have several web pages with multiple anchor mailto links. I am concerned that these may be 'harvested' by spammers, so want to create a level of protection.
I have managed to find a piece of javascript that I can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.