title: How to set div tag height and width using javascript?
body: <p>How can I set the width and height of a <code>div</code> using JavaScript?</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;%@page import="org.json.JSONObject"%&gt;
  &lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;View JSON&lt;/title&gt;
  &lt;script type="text/javascript"&gt;
  var rect1='{"minX": 0.0,"minY": 0.0,"maxX": 2460.0,"maxY": 3008.0}';
  var rectangle = JSON.parse(rect1);
  var maxx=rectangle.maxX;
  var maxy=rectangle.maxY;
  
  ***What should i do here?***
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h5&gt;JSON View&lt;/h5&gt;
  &lt;div id="set"&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to set the div width to <code>maxx</code> and height to <code>maxy</code> values. I also want to set its border to <code>1px</code> so that I can see whether it's working or not.</p>
  
  <p>Thanks</p>