• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 499
  • Last Modified:

location.href --> mailto... how ?

Hello Experts,

Into the contact i want the mailtoo how can i fix that ?

<DIV class=item
            onmouseover="showMenu(this, -1, 'iportfolio_right', 'icontact_us_right');"
            onmouseout="hideMenu(this, -1, 'iportfolio_right', 'icontact_us_right');"
            onclick="location.href='info@abc.com'">Contact
            Us</DIV>
0
elieazzi
Asked:
elieazzi
1 Solution
 
rati_geCommented:
Hallo
All you need to do is to declare you href in this way

<a href="mailto:recipient@somedomain.com">SenMail</a>

Do not forget to mark this post as useful.
0
 
reneanywhereCommented:
this is the right code for your request:

<a href="mailto:info@abc.com">Contact Us</a>

bty: the rest of the code is wrong too!

look here to get more familiar with html:

http://www.w3schools.com/
0
 
reneanywhereCommented:
and java script of course ;)
0
 
Pieter MaraisLead DeveloperCommented:
Hi there,

Your code seems all right to me. The only necessary thing to do would be to add a "mailto:" at the front of the email address.

It should work fine then.

Hope it helps ^_^
<DIV class=item onmouseover="showMenu(this, -1, 'iportfolio_right', 'icontact_us_right');"
            onmouseout="hideMenu(this, -1, 'iportfolio_right', 'icontact_us_right');"
            onclick="location.href='mailto:info@abc.com'">Contact
            Us</DIV>

Open in new window

0
 
elieazziAuthor Commented:
Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now