Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

HI I am trying this but on the form I am unable click on the link

Instead of ng-href.. use normal href and check.

i have tried this but it is not working and it is breaking my page

can you share your widget code once here. also the screenshot of the output.

<div>
<!-- your widget template -->
<div>
<button type='link' ng-click="c.generatePassword()"style="color:black;">url</button>
</div>
</div>