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

rel="nofollow" where to place in pop up window link?

<a href="javascript:emailwin=window.open('http://www.mywebsite.com?accountid=102262','Email','width=700,height=489,toolbar=no,statusbar=no,location=no');emailwin.focus();"><img src="../images/agent_contactinfo.gif" alt="Contact Info" width="109" height="21" border="0" /></a>

The link above is for a POP UP window that has contact info and form. WHERE is the correct place to put the NOFOLLOW code? To clarify, I mean the rel="nofollow" attribute. I do not want search engines to crawl to this link.

0
gplemos
Asked:
gplemos
  • 2
1 Solution
 
Mark StegglesWeb DeveloperCommented:
Hello,

The correct place to put the rel="nofollow" is inside the <a> tag:

<a href="javascript:emailwin=window.open('http://www.mywebsite.com?accountid=102262','Email','width=700,height=489,toolbar=no,statusbar=no,location=no');emailwin.focus();"><img src="../images/agent_contactinfo.gif" alt="Contact Info" width="109" height="21" border="0" rel="nofollow" /></a>

Regards
0
 
gplemosAuthor Commented:
<a href="javascript:emailwin=window.open('http://www.mywebsite.com/accountid=102262','Email','width=700,height=489,toolbar=no,statusbar=no,location=no');emailwin.focus();" rel="nofollow">Contact Me by Email</a>

What about in a situation like above where there is NO IMG? Is the location where I put rel="nofollow" correct?
0
 
Mark StegglesWeb DeveloperCommented:
Oops! my example is wrong.

rel="nofollow" always goes in the <a> tag, never in an img tag

<a rel="nofollow" href="javascript:emailwin=window.open('http://www.mywebsite.com?accountid=102262','Email','width=700,height=489,toolbar=no,statusbar=no,location=no');emailwin.focus();"><img src="../images/agent_contactinfo.gif" alt="Contact Info" width="109" height="21" border="0" /></a>
0
 
informabizCommented:
thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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