Article View: pl.comp.lang.javascript
Article #49975Re: odczytywanie zawartości iframa
From: Peter May
Date: Wed, 21 Apr 2010 21:26
Date: Wed, 21 Apr 2010 21:26
15 lines
1391 bytes
1391 bytes
W dniu 2010-04-21 23:03, smerf pisze:
> dobra to jak juz to i ja zapytam:
> jak zmodyfikowac zawartosc iframe na stronie, cos ala innerHTML
No przecież podałem już odpowiedź:
var myframe = document.getElementById("iframeid");
var doc = (myframe.contentWindow || myframe.contentDocument);
I przykład:
doc.document.body.innerHTML = "tutaj zawartość wstawiania do body";
--
Peter
Technical Details
Message-ID:
<hqnqi4$juj$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mailReferences:
<cf26ef3f-8ba4-40b5-af09-bf5156fe11ee@l37g2000vbd.googlegroups.com> <hql15u$dug$1@news.onet.pl> <4bcf6837$1@news.home.net.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail From: Peter May <peter.may@onet.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: odczytywanie zawartości iframa Date: Wed, 21 Apr 2010 23:26:32 +0200 Organization: http://onet.pl Lines: 15 Message-ID: <hqnqi4$juj$1@news.onet.pl> References: <cf26ef3f-8ba4-40b5-af09-bf5156fe11ee@l37g2000vbd.googlegroups.com> <hql15u$dug$1@news.onet.pl> <4bcf6837$1@news.home.net.pl> NNTP-Posting-Host: 188.146.169.142.nat.umts.dynamic.eranet.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1271885190 20435 188.146.169.142 (21 Apr 2010 21:26:30 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Wed, 21 Apr 2010 21:26:30 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 In-Reply-To: <4bcf6837$1@news.home.net.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit