NetProgrammingHelp.com
Asp.Net,C#,Ajax,Sql server,silverlight,Javascript codes exambles articles,Programming exambles

Recent Posts

  • How to declare/use global constants (enum’s) in javascript ajax function
  • Silverlight Data Binding OneWay TwoWay Asp.Net C# XAML
  • Accessing Executing Running Stored Procedure/Function/Package Using Linq Silverlight Xaml
  • Creating/Developing Silverlight Data Driven Applications Using Wcf Linq Asp.Net C#
  • Deploying Manually Publish XBAP Wpf Browser Application in IIS Asp.Net C# XAML
  • Creating Server and client using remoting asp.net c#
  • Create/Build wcf autocomplete/autoextender textbox using database linq c# asp.net
  • Essentials for Creating/Developing/Programming silverlight project tools wpf xaml
  • Working with xml data type variable sql server 2008 asp.net c#
  • Encrypting Stored Procedure sql server 2008 asp.net c#
  • Adjusting Resizing Iframe Based On Screen resolution

    Posted by James Categorized Under: JAVASCRIPT 2 Comments

    Introduction:
    In this article,i am going to explain how to adjusting iframe size based on screen resolution or its contents,

    Main:

    <html>
    <body OnLoad = "AdjustSize();">
    <div id="FrameDiv" Height="440px">
    <iframe id="Frame" src="WebForm1.html">
    </iframe>
    </div>
    </body>
    </html>
     
     
    function AdjustSize()
    {
    if ((screen.width>=1024) && (Screen.height>=768)){
    document.getElementById('Frame').style.height =
    Frame.document.body.scrollHeight + 10;
    }
    }

    Conclusion:
    Hope this helps,
    Happy Coding.

    2 Responses to “Adjusting Resizing Iframe Based On Screen resolution ”

    1. Please, can you PM me and tell me few more detailles about this, I am really fan of your web log…

    2. falone says:

      I would like to exchange links with your site netprogramminghelp.com
      Is this possible?

    Leave a Reply