LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-23-2013, 07:33 PM   #1
masavini
Member
 
Registered: Jun 2008
Posts: 177

Rep: Reputation: 6
javascript and iframes...


hi,
i have a page with this structure:

Code:
<body>
<iframe id="a" src="www.mysite.com/frameA">
<iframe id="b" src="www.mysite.com/frameB">
<iframe id="c" src="www.mysite.com/frameC">
</iframe>
</iframe>
</iframe>
</body>
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:
Code:
<script>
window.top.top.top.document.getElementById("a").style.height = '1000px';
</script>
... but it doesn't work... any hint?
thanks!
 
Old 03-24-2013, 05:16 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,420

Rep: Reputation: 100Reputation: 100
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
masavini
Member
 
Registered: Jun 2008
Posts: 177

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


Reply


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


All times are GMT -5. The time now is 04:39 AM.

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