how can i embed a web page with some javascript functionality in a form?

I have a requirement on my hands to embed an html form inside a form with some javascript functionality. I've looked around the internet and can't seem to lay my hands on some good resource.