By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,259 Members | 1,680 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,259 IT Pros & Developers. It's quick & easy.

iframe problem: email client reappears on pressing back button

P: 1
Hi, I am Jieun
I am working on e-mail redirecting for preventing email harvesting using iframe.

When clicking on email and then click on another link on the page. Then press back button, the email client reppears with the email address that was clicked in the previous page. How can I avoid this behavior?

Here's the code.

Expand|Select|Wrap|Line Numbers
  1.  HTML 
  2. <body>
  3. <a href="" target="email">zieni</a>
  4. <iframe style="visibility:hidden" name="email" height="0" width="0"></iframe>
  5. </body>
  7. * the domain name is pseudonym. 
  9. ASP
  10. <%
  11. Response.Redirect("mailto:"+Request.QueryString("u")+"@"+Request.QueryString("d"))
  12. %>
Nov 25 '05 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 100+
P: 2,330
Why not outbut a "Click here to go back!" link on mailto.asp before you run the redirect to the mail client? Let me know if that works.

Here is the code for going back one page:
Expand|Select|Wrap|Line Numbers
  1. Click <a href="javascript:history.back(1)">here</a> to go back!
I don't know if that will solve your problem, hopefully someone else has a better solution.
Nov 29 '05 #2

Expert Mod 15k+
P: 16,027
This is caused by the iframe. The back button will act on the iframe.

For this particular problem, an ASP mailer script would make most sense. This would keep the email hidden with no mailtos.
Jun 22 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.