resize child window to match content

Posted on 2003-10-24
Last Modified: 2008-03-06
I have a child window which contains dynamic tables, the width of the child is ok but sometimes the table length is greater than the window length and i would rather resize the window to show all the content than require the user to scroll to access the functions in the page.

Question by:James Rodgers
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 25

Accepted Solution

devic earned 100 total points
ID: 9615946
hi Jester_48, here is example, you can change numbers, to correct with your window:
function runit()
      var dynTable=document.getElementById("dynTable");
<table id=dynTable width=555 height=300 cellspacing=0 cellpadding=0 border=1>
<button onclick=runit()>runit</button>
LVL 25

Author Comment

by:James Rodgers
ID: 9616010

works great!

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question