By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,119 Members | 2,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,119 IT Pros & Developers. It's quick & easy.

how to visit the iframe in frameset

P: n/a
This problem is this:a page is made up of frameset, but i can't visit
the iframe(inline frame) of the frame in the framset.just like the
frameset have 3 frames,the third frame have a iframe(inline frame) .how
to ?Thank you for help.

Mar 18 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a


zh*******@yahoo.com wrote:
a page is made up of frameset, but i can't visit
the iframe(inline frame) of the frame in the framset.just like the
frameset have 3 frames,the third frame have a iframe(inline frame) .

What exactly does that mean that you "can't visit the iframe"? Is is not
visible? Do you want your script to access the iframe and change its
contents? You should be able to access
top.frames[2].frames[0].location.href = 'whatever.html';
to load whatever.html in the iframe.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Mar 18 '06 #2

P: n/a
thank you Martin,
i have 1.htm that include a iframe named "textedit",the code below work
well,but when i put 1.htm into a frameset ,the code can't do any
effect.
<img src="' onclick="format('Bold')">
<script language="javascript">
function format(command){
var textedit=document.frames("textedit");
var sText = textedit.document.selection.createRange();
if (!sText==""){
if (arguments[1]==null)
textedit.document.execCommand(command);
else
textedit.document.execCommand(command,false, arguments[1]);
textedit.focus();
}
}
</script>

Mar 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.