Jacques said:
Thanks Trevor.
I'm using a Frontpage form for my Contact us page.
Can you tell me where and how I can see insert your tag and function
in my form ?
I'm not yet experimented in frontpage programming but with a initial
guidance, I can manage.
Or if you have a web page using this tag, you can indicate it to me
also.
Jacques
The HTML for calling sendEmail() is in
http://tandcl.homemail.com.au/sidebar.html
The JS code is in
http://tandcl.homemail.com.au/sidebar.js
Because the HTML code is a frame, you may have difficulty in accessing it.
The HTML code is simply this
<script type="text/javascript">sendEMail()</script>
You can place this anywhere in a form (i.e. betwen <form> and </form>
But you need a little CSS as well as the function
So, in the head section (between <head> and </head>) place this
<style type="text/css">
img {float: left; }
</style>
<script type="text/javascript">
function sendEMail()
{
var text = 'Email<br>Us'
var userTo = 'me'
var domainTo = 'mydomain.com'
var userCC = ''
var domainCC = ''
var userBCC = ''
var domainBCC = ''
var subject = 'Response from ' + top.document.title
var body = 'Please enter message here'
var CC = (userCC != '') ? userCC + '@' + domainCC : userCC
var BCC = (userBCC != '') ? userBCC + '@' + domainBCC : userBCC
document.write
( '<a href="mailto:'
+ userTo + '@' + domainTo
+ '?subject=' + subject
+ '&cc=' + CC
+ '&bcc=' + BCC
+ '&body=' + body + '">'
+ '<img src="images/display/mailto.gif">' + text + '</a>')
}
</script>
This code uses an image file "mailto.gif", which you can find at (and copy
from)
http://tandcl.homemail.com.au/images/display/mailto.gif.
To get it to work without altering the JS, place it in the same folder.
Otherwise alter the JS.
Since you said you thought you'd manage, I suppose you are OK from here. If
not, remember that you have to go to Code or HTML view - the tab on the
bottom - in order to update your HTML