web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Iframes with links open in same new window

(0) ShareShare
ReportReport
Posted on by 2,665

hi,

I have 3 iframes on my dashboard. Each iframe contains a link inside it.

Whenever that link is opened in one frame, it gets opened in a new window.

And when another link in another iframe is clicked, it overwrites the previously opened window for first iframe.

So all three iframe links open in one new window. Only one iframe link can be opened at a time.

How do I have all three links to open in 3 windows?

This is the sample code I use to create a link in an iframe.

1st iframe:

<a href="link1.aspx" target="_blank" onclick="javascript:window.open('link1.aspx', 'Detail View', 'location=0, status=0, resizable=1, scrollbars=1, width=800, height=800'); return false;">View Details</a>

2nd iframe:

<a href="link2.aspx" target="_blank" onclick="javascript:window.open('link2.aspx', 'Detail View', 'location=0, status=0, resizable=1, scrollbars=1, width=800, height=800'); return false;">View Details</a>

3rd iframe:

<a href="link3.aspx" target="_blank" onclick="javascript:window.open('link3.aspx', 'Detail View', 'location=0, status=0, resizable=1, scrollbars=1, width=800, height=800'); return false;">View Details</a>

Please guide me through this. Thanks for any help.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Iframes with links open in same new window

    pass window.open(url, '_blank');

  • Verified answer
    abhishek_255 Profile Picture
    1,614 on at
    RE: Iframes with links open in same new window

    Change window name in window.open function which is same in all "DetailView"

  • crmprogrammer2013 Profile Picture
    2,665 on at
    RE: Iframes with links open in same new window

    Thanks Abhishek.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans