Skip to content
Advertisement

How to Display plain text of api result ( noob question )

I am completely new to api. I want to display the plain text response of the output of this:

https://vurl.com/api.php?url=https://google.com

to my webpage html but it’s not working.

My code:

JavaScript

Thanks

Advertisement

Answer

Not really sure why you’re mixing javascript with your php code. Nevertheless, this is the approach you should follow:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement