how to popup the url in same window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 01:15 AM
hi everyone,
I am using a following HTML code in one of my portal widget.
<div>
<!-- your widget template -->
<div>
<button type='link' ng-click="c.generatePassword()"style="color:black;">url</button>
</div>
</div>
for now when we click on the url it is opening in new tab but my req is to open in same frame like for example when we open a record producer and click on preview blink, the form opens in same frame like wise I want to implement the same with the mentioned url in the widget.
please help.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 02:28 AM
Hi,
I suggested to use anchor tag like below.
<a href="{{ url}}" ng-click="c.generatePassword()" target="_self">{{url}}</a>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 02:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 03:00 AM
I am able to click on the url but when clicked this is what happening and url gets opened in new tab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 03:52 AM
The url is opening in the same tab, hence you see that issue.
What exactly the url suppose to render? Can you copy that url and open in a new tab and check what you see.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 05:57 AM
Actually I want to popup the url in same window not opening the url in same frame