calling an email address

admin

Administrator
Staff member
I have a web site that has pages which are generated by CGI. Once a viewer clicks on a particular category, the CGI generated page for that category is displayed. I want to show banners which are specific to that category on the particular page. We have a JS which filters the url of the query string that selects the correct banner for the CGI page for each category. We have the JS working to filter correctly, and it displays the banners correctly. We are even able to attach a href to the banners as a hyperlink to other sites. What we cannot get to work is a "mailto" attached in the script for the banner.
For instance: a href=http://www.webdeveloper.com/forum/archive/index.php/mailto:[email protected] will open the email program but will address the email to "tom.net" instead of "[email protected]" Here is the section of script that is giving us problems:

if(docloc==urls[0]){
document.write("<a href=mailto:[email protected]><img src =http://www.somewhere.com/Bannerforsomebody.jpg></a>")
}
 
Back
Top