Latest LQ Deal: Linux Power User Bundle
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, 07:33 PM   #1
Registered: Jun 2008
Posts: 232

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, 05:16 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
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, 07:34 PM   #3
Registered: Jun 2008
Posts: 232

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 01:01 AM
Expanding iFrames dudeman41465 Programming 1 06-27-2008 11:24 AM
Ubuntu Edgy/Firefox 2/Javascript - Firefox closes accessing websites with Javascript Interdictor Ubuntu 8 11-02-2006 11:58 AM
php, iframes and loading a page poeta_boy Programming 3 03-15-2005 03:45 AM
Ms Ie Iframes????? graystarr Linux - Software 0 08-18-2003 12:37 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:42 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