Here's a quick and dirty demo of the code:

<html>
<head>
<title>Untitled Document</title>
<script type="text/javascript">
function resizeIFrame(w,h) {
        var el = document.getElementById('testFrame');
        el.style.width=w;
        el.style.height=h;
}
</script>

</head>

<body id="myDoc">

<iframe id="testFrame" style="width:100px;height:40px; "
src="about:mozilla"></iframe>

<button type="button" onClick="resizeIFrame(200,80);">Resize</button>
<button type="button" onClick="resizeIFrame(400,160);">Resize2</button>

</body>
</html>



On 4/13/05, Clint Tredway <[EMAIL PROTECTED]> wrote:
> nope - no work in IE or Firefox...
> 
> thanks
> 
> On 4/13/05, Marlon Moyer <[EMAIL PROTECTED]> wrote:
> > try
> >
> > document.frame.style.width = 100;
> >
> > On 4/13/05, Clint Tredway <[EMAIL PROTECTED]> wrote:
> > > mainly just trying this:
> > > document.frame.width = 100;
> > > document.frame2.width = 50;
> > >
> > > any guidance would be welcomed... not feeling well today and need to
> > > build a quick prototype...
> > >
> > > On 4/13/05, Marlon Moyer <[EMAIL PROTECTED]> wrote:
> > > > I do this on some of my own sites.  Do you have any code to show.
> > > >
> > > > On 4/13/05, Clint Tredway <[EMAIL PROTECTED]> wrote:
> > > > > isn't it possible to control an iframe with javascript? basically I
> > > > > have to iframes that I want to resize...
> > > > >
> > > > > I guess I am missing on how to referrence them in javascript. I have
> > > > > the id and name attributes defined... but it no worky... dang it...
> > > > >
> > > > > thanks... I must need more coffee today, lol
> > > > >
> > > > > --
> > > > > My Blog
> > > > > http://www.clinttredway.com
> > > > >
> > > > > Are you diabetic?
> > > > > http://www.diabetesforums.com
> > > > > ----------------------------------------------------------
> > > > > To post, send email to [email protected]
> > > > > To unsubscribe:
> > > > >    http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> > > > > To subscribe:
> > > > >    http://www.dfwcfug.org/form_MemberRegistration.cfm
> > > > >
> > > > >
> > > >
> > > > --
> > > > Invite 50 Friends to Gmail!  Who has friggin' 50 friends!?
> > > > ----------------------------------------------------------
> > > > To post, send email to [email protected]
> > > > To unsubscribe:
> > > >    http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> > > > To subscribe:
> > > >    http://www.dfwcfug.org/form_MemberRegistration.cfm
> > > >
> > > >
> > >
> > > --
> > > My Blog
> > > http://www.clinttredway.com
> > >
> > > Are you diabetic?
> > > http://www.diabetesforums.com
> > > ----------------------------------------------------------
> > > To post, send email to [email protected]
> > > To unsubscribe:
> > >    http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> > > To subscribe:
> > >    http://www.dfwcfug.org/form_MemberRegistration.cfm
> > >
> > >
> >
> > --
> > Invite 50 Friends to Gmail!  Who has friggin' 50 friends!?
> > ----------------------------------------------------------
> > To post, send email to [email protected]
> > To unsubscribe:
> >    http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> > To subscribe:
> >    http://www.dfwcfug.org/form_MemberRegistration.cfm
> >
> >
> 
> --
> My Blog
> http://www.clinttredway.com
> 
> Are you diabetic?
> http://www.diabetesforums.com
> ----------------------------------------------------------
> To post, send email to [email protected]
> To unsubscribe:
>    http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> To subscribe:
>    http://www.dfwcfug.org/form_MemberRegistration.cfm
> 
> 


-- 
Invite 50 Friends to Gmail!  Who has friggin' 50 friends!?
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to