I want to create a widget or a javascript code which will render a HTML form on the webpage where the code is embedded.
eg. www.example.com wants to show a BMI calculator which is hosted on www.example2.com example2 wants to share that BMI with example.com but is not giving the actual code. He will share just a js code ( Like how we include Google Analytics or Google Ads ). Whats the best way to achieve this?
In this calculator we are asking multiple details from the user which are saved in database on www.example2.com in db .
I don't want to go Java Applet or Flash way. Currently I have to share HTML code of the BMI calculator which is not ideal.
What are the possibilities here.
Thanks