Discussions
Auto-resize iframe customer form
We're using Netsuite custom forms and embedding them in our site, within iframes, but we notice that sometimes the bottom of the form gets clipped. (This might have to do with browser type, or the user's font size settings.)
Is there a way to embed a Netsuite form as an iframe in such a way that the iframe resizes to contain all of the content, without scrollbars?
We've tried various approaches, so far without success. Here's one:
I saved this script in one of our folders:
[INDENT]<script>
function resizeToContent(){
var x =0;
var y =this.document.body.scrollHeight;