Skip to main content

Bug Tracker

Side navigation

#12944 closed bug (duplicate)

Opened November 22, 2012 04:35PM UTC

Closed November 22, 2012 05:19PM UTC

$(window).height(); not working in Mozilla Firefox 16.0.2 n others too using jquery1.8.2

Reported by: kushagra4296@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

When using $(window).height(); with jquery 1.8.2, Chrome gives the right output, but internet explorer and mozilla firefox aren't giving the right output. Where Chrome gives the right value 675, mozilla returns 8 and internet explorer returns 0. The code is:

<html>

<head>

<title>CHECK</title>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

<script type="text/javascript">

$(document).ready(function(){

var wh=$(window).height();

$("#hell").html(wh);

});

</script>

</head>

<body>

<div id="hell"></div>

</body>

</html>

Attachments (0)
Change History (1)

Changed November 22, 2012 05:19PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #12426.