how to popup the url in same window

service buzz
Tera Contributor

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.

 

15 REPLIES 15

Okay. Then you have to use GlideDialogWindow object.

And what exactly does this url show? Is this a external url or existing ui page?

Check out this article where I have shown how to open a ui page in popup.

https://community.servicenow.com/community?id=community_article&sys_id=bb0e039fdb9b1054b1b102d5ca961...