How to open html code in iframe or new page?

Gowri S
Tera Expert

From UI action, we have outbound API call to external system as response they are sending html code and it has to be opened in iframe or new page, it will be external page not ServiceNow page.

 

I am receiving the HTML code, now I am not sure how to open it in new page or iframe. Kindly let me know if this is possible.

 

Thanks Gowri

1 ACCEPTED SOLUTION

Gowri S
Tera Expert

The solution to open in new page using window.open with form hidden inputs as similar to below Reference

 javascript - Window.open and pass parameters by post method - Stack Overflow

View solution in original post

16 REPLIES 16

@Gowri S 

 

You can load you css, js and HTML in a UI page and call the UI page from the GlideModal in the UI action as follows:

 

var gm = new GlideModal("Name_of_the_UI_page");

 

It will render the data.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

Gowri S
Tera Expert

The solution to open in new page using window.open with form hidden inputs as similar to below Reference

 javascript - Window.open and pass parameters by post method - Stack Overflow