'Auto submit a input to show iframe in Angular

I have an input of type submit, that when clicking it shows an iframe, I want that when loading the page the input autoclick to see the iframe when loading the page, but I don't know how to do it, this is my code:

<form *ngIf="assetData" action="{{assetData.urlGrafana}}" target="frameurl" class="card- 
title">
<input id="mostrar" type="submit" value="Mostrar panel"/>
</form>

<iframe id="frameurl" name="frameurl" src="" width="1000" height="600" frameborder="0"> 
</iframe>

Help would be greatly appreciated :(



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source