$("a[target='_top']").attr('target','_blank');
or
$("a[target='_top']").attr('target','your_iframes_name');



On Jul 17, 5:04 am, mickbw <[EMAIL PROTECTED]> wrote:
> I am embedding an external page (with permission) in an iframe on my
> page.  The problem is when the page has a link with a target value of
> _top it navigates out of the frame.
>
> An example link I could try  to change is:
> "<a target="_top"  href="http://jobsearchlog.com";>Job Search Log</a>"
>
>  I want to change the target attribute value to an empty value or even
> better remove the target attribute from the link.
>
> I have been successful at using $('[EMAIL PROTECTED]"http://";]') to identify
> external links so I figured $('[EMAIL PROTECTED]"_top]') would work to
> identify the links with that target but it doesn't seem to work.
>
> Any help would be greatly appreciated.

Reply via email to