Display external website ( page ) in ServiceNow Page

abhiyadav2001
Giga Expert

Hi All,

I have created a UI page in my SNow instance ( Eureka ). In that page, I need to create a hyperlink ( href ) to other website ( say www.google.com ). I tried it in below way.

<iframe name="myFrame"></iframe>   <!-- created my blank frame here -->

<span>

<a class="jive-link-external-small" href="https://www.google.com" rel="nofollow" target="myFrame" target ="_blank"> Click here</a>  

</span>

With this, I experimented a lot.   '_blank' opens a link in new window. If I remove it   ( default choice is _self ) it doesnt work.

I also tried using myFrame. It isn't displaying the page in 'frame'

However, I would like to see the page in my same frame of SNow. Is it possible ?

Where should I look to get more information about it ? If anyone has any idea about it, please let me know.

Note : When I click on 'Click Here' ; browser status bar shows 'waiting for google.com' , but it isn't displaying the google page.

Thanks,

Abhijeet

1 ACCEPTED SOLUTION

abhiyadav2001
Giga Expert

Hi,



I found an issue...



When we try to render an external URL in Snow, browser gives us a security warning to allow to run it.



In Crome, mozilla, a symbol like 'shield' appears in address bar of browser. We need to click ' Allow' there only once. From next time you open the page, it will render the external URL in it.


View solution in original post

10 REPLIES 10

Hi Sajan,



I believe you just need an updated browser. It works for Firefox, Chrome, Safari for sure.



Otherwise, I am pretty sure there are few javascripts which determine your browsers. You may need to change APIs somwehere in code.



Thanks,


Abhijeet