How to make javascript link target to my iframe?
Posted
by
GanChinHock.com
on Stack Overflow
See other posts from Stack Overflow
or by GanChinHock.com
Published on 2010-12-24T14:32:26Z
Indexed on
2010/12/26
14:54 UTC
Read the original article
Hit count: 126
JavaScript
|html
I have a iframe and there is a javascript function in it. Basically, I want to create an anchor tag to call the function and activate it in my iframe. Do you have any idea?
<p><a href="javascript:document.body.contentEditable='true'; document.designMode='on'; void 0" target="test">Edit Google</a></p>
<iframe name="test" src="http://www.google.com"></iframe>
It is not working. Any idea?
© Stack Overflow or respective owner