w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About
BEST WEB HOSTING JustHosts

Frame noResize Property


Frame/IFrame Object Reference Frame/IFrame Object

Definition and Usage

The noResize property sets or returns the value of the noresize attribute in a frame element.

The noresize attribute specifies that a frame cannot be resized by the user.

Syntax

frameObject.noResize=true|false


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The noResize property is supported in all major browsers.


Example

Create a frameset with two frames. Each frame is set to 50% of the browser window:

<html>
  <frameset cols="50%,50%">
    <frame id="leftFrame" src="frame_noresize.htm">
    <frame id="rightFrame" src="frame_a.htm">
  </frameset>
</html>

The source code of "frame_noresize.htm" is as follows:

Example

<html>
<head>
<script type="text/javascript">
function disableResize()
  {
  parent.document.getElementById("leftFrame").noResize=true
  parent.document.getElementById("rightFrame").noResize=true
  }
function enableResize()
  {
  parent.document.getElementById("leftFrame").noResize=false
  parent.document.getElementById("rightFrame").noResize=false
  }
</script>
</head>
<body>

<input type="button" onclick="disableResize()" value="No resize" />
<input type="button" onclick="enableResize()" value="Resize" />

</body>
</html>

Try it yourself »


Frame/IFrame Object Reference Frame/IFrame Object

WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Cheap UK Web Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
SEO Company
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
SHARE THIS PAGE