Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with iframe

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I got problem when i try to strikeout text in editor
that make from iframe.
I try to find command of execCommand to strike text
but,i can't findd it so,
If anyone who know the command or anyone can give me
an another solution
Please help me!
Thank you
 
I understood that you need to strike a text in an iframe.
If I'm not correct, please clarify.

<HTML>
<HEAD>
<script language=&quot;JavaScript&quot;>
function striketest() {
sInner = document.frames(&quot;sFrameName&quot;).document.body.innerHTML;
document.frames(&quot;sFrameName&quot;).document.body.innerHTML = &quot;<strike>&quot;+ sInner +&quot;</strike>&quot;;
}
</script>
</head>
<BODY>
Bla
<FORM>
<INPUT type=&quot;button&quot; value=&quot;strike&quot; onClick=&quot;striketest();&quot;>
</FORM>
<iframe name=&quot;sFrameName&quot; src=&quot;second.html&quot;></iframe>
</HTML>

Hope this helps.
D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top