1
    function iframeLoaded() {
        var iFrameID = document.getElementById('iframe_login');
        if (iFrameID) {
            // here you can meke the height, I delete it first, then I make it again
            iFrameID.height = "";
            iFrameID.height = iFrameID.contentWindow.document.body.scrollHeight + "px";
        }
    }

This script is not working in Mozilla firefox but it works in chrome.

1 Answer 1

2

use jquery, http://api.jquery.com/height/

 function iframeLoaded() {
        var iFrameID = $('#iframe_login');
        if (iFrameID) {
            iFrameID.height(...)
        }
    }
Sign up to request clarification or add additional context in comments.

1 Comment

please tell me what type of changes i do on my code for run this code on mozilla

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.