E
E
Eugene2015-10-04 12:40:24
JavaScript
Eugene, 2015-10-04 12:40:24

How to crop 80px from height?

Hello.

Can you please tell me how to do this:

<script>
window.onload=function() {
document.getElementById("ifr").style.height=window.innerHeight+"px";
}
</script>


Subtract 80 pixels from height? That is, now the script substitutes the real height of the browser window, but it is necessary that the height of the browser be substituted minus 80 pixels.

Thanks for the help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Inchin ☢, 2015-10-04
@vinegred

window.innerHeight-80
13432953158505.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question