Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-23-2013, 08:33 PM   #1
Registered: Jun 2008
Posts: 217

Rep: Reputation: 6
javascript and iframes...

i have a page with this structure:

<iframe id="a" src="">
<iframe id="b" src="">
<iframe id="c" src="">
the code i post is displayed into iframe "c" and i need some code to change the height of iframe "a".

i tried with this:
<script>"a").style.height = '1000px';
... but it doesn't work... any hint?
Old 03-24-2013, 06:16 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,507

Rep: Reputation: 128Reputation: 128
iframes behave like they were windows themselves. You can change their behaviour and look with javascript in their source code but not from the "parent" window or from other iframes.
Old 03-24-2013, 08:34 PM   #3
Registered: Jun 2008
Posts: 217

Original Poster
Rep: Reputation: 6
got it, thank you...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Firefox 17 Gets Friendly With Facebook, Wary of iFrames LXer Syndicated Linux News 0 11-22-2012 02:01 AM
Expanding iFrames dudeman41465 Programming 1 06-27-2008 12:24 PM
Ubuntu Edgy/Firefox 2/Javascript - Firefox closes accessing websites with Javascript Interdictor Ubuntu 8 11-02-2006 12:58 PM
php, iframes and loading a page poeta_boy Programming 3 03-15-2005 04:45 AM
Ms Ie Iframes????? graystarr Linux - Software 0 08-18-2003 01:37 PM

All times are GMT -5. The time now is 07:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration