Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7012279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:14:07+00:00 2026-05-27T22:14:07+00:00

So I automatically resize my iframe based on content height as follows: <a href=#

  • 0

So I automatically resize my iframe based on content height as follows:

<a href="#" onClick="sc.style.height='200px'; window.location.reload(); window.open('19.htm', 'middle'); return false;">Link1</a>
<iframe src="19.htm" name="middle"  id="middle" scrolling="no"></iframe>

However, I use my methods of resizing body haven’t worked…

I try the above code to automatically resize the body height so the iframe fit easily in the page because different pages content have different height

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:14:08+00:00Added an answer on May 27, 2026 at 10:14 pm

    The following link contains the info you need: Control iframe height with jQuery

    It’s worth using jQuery to make the dynamic changes you’ll need. In particular…

    • http://api.jquery.com/height/
    • http://jquery-howto.blogspot.com/2010/02/dynamically-create-iframe-with-jquery.html

    If you’ve not used jQuery before now’s the time to start. It makes life much easier.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is it possible to automatically resize div and its content when browser window is
In VB 6 I'm trying to make a control automatically resize based on the
How would I go about making the length of the tabs automatically resize based
// resize myiframe base on content height $('.myiframe').contents().find('body').css({min-height: 100, overflow : hidden}); setInterval( $('.myiframe').height($('.myiframe').contents().find('body').height()
I've written a Javascript script that automatically resizes the height of an IFrame, depending
How to automatically resize TStringGrid row (DefaultRowHeight) to match the height of the font
How should I resize an image with Python script so that it would automatically
How can I make a CListCtrl to resize the width of its columns automatically?
Is there a way to automatically resize the background image of an element. For
I've been trying to get a Silverlight 3 application to automatically resize when rows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.