Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple button with mailto:

Status
Not open for further replies.

arilvade

IS-IT--Management
Mar 17, 2005
32
US
How can I create a button that utilizes the mailto: tag?

I can't use the form method.

My code:

<a href="mailto:testing@navy.mil?subject=Document Scan Request&body=

Please scan the following document:%0a%0a

<CFOUTPUT QUERY="query" STARTROW=1 MAXROWS=1>
Task ID:#trim(ti_id)#%0a
Class: #trim(ti_type)#-#trim(ti_class)#%0a
Type: #trim(ti_task)#%0a
Number: #trim(ti_num)#%0a
Rev: #trim(ti_rev)#%0a
Increment: #trim(ti_incr)#%0a
Title: #trim(ti_brief)#%0a

">SUBMIT</a>
 
You could style the link to make it look like a button. Check this for a nice reference:
Other than that, I don't think that you can put href attributes (or anything similar) on a button element -- if it is button element you're talking about.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Very easily: add the onClick event:
Code:
<input type="button" value="Click Me" onClick="window.location='[URL unfurl="true"]http://www.mysite.com'">[/URL]
(note- you could put any javascript you want in the onClick)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top