Answer the question
In order to leave comments, you need to log in
How to get the height of a frame loaded from another domain?
Hello! I am loading the Bitrix 24 form by clicking on a button with the class b24-web-form-popup-btn-3 . The frame with the form is loaded. I need to get the height of this iframe#bx_form_iframe_3 frame .
I try to do like this:
$('.b24-web-form-popup-btn-3').on('click', function() {
$('iframe#bx_form_iframe_3').load(function() {
eh = $('iframe#bx_form_iframe_3').contents().find('html').height();
console.log(eh);
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question