Home > Back-end >  HREF link not going to output target
HREF link not going to output target

Time:11-14

I have an href link set to output to target=‘right’. ‘right’ is an I frame in the parent window.

<a href=‘http://www.example.com/abc.pup?ev=$ev’ target=‘right’>Click</a>

The desired target, ‘right’ is in the parent document. The link is not finding the target. It worked well until I I did some editing.

CodePudding user response:

The target attribute specifies where to open the linked document:

enter image description here

You can see details from this link: https://www.w3schools.com/tags/att_a_target.asp

CodePudding user response:

The right syntax would be: <a href="http://www.example.com/abc.pup?ev=<?php echo $ev; ?>" target="right">Click</a>

  •  Tags:  
  • html
  • Related