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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open New Email Window without using HREF?

Status
Not open for further replies.

ClarkJeff

Programmer
Feb 28, 2002
46
US
I'd like to programmatically open an email window in ASP, without forcing the user to click on a HREF link. I do want to be able to redirect the user to another ASP, but have the email window stay open. A Response.Redirect "mailto:name@server.com" will work, but the current page actually gets redirected and goes blank. Thanks.
 
Where do I put the command? I didn't want to use a HREF, if possible. Thanks.
 
this bit of code amy help:

<script language=javascript>
function openemail(emailadd) {
window.open(&quot;mailto:&quot;+emailadd)
}
</script>

<span onclick=&quot;openemail('some@one.com')&quot;>email me</span>
 
Thanks for the tip, but I wanted to open this programatically inline without requiring a user to click. I'm looking into calling a Javascript function from ASP. That should work then. Thanks.
 
After sitting here thinking about it a little more, I don't think I'll be able to do what I was originally thinking about. I have to go to a new page to make this work, as the browser has to go somewhere to be able to launch the email program. I think I'll be able to make it work from here. Thanks for all you help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top