Hello everyone,
I’m trying to write a script that open a new window each time someone clicks on inside the <iframe>
I’ll give an example:
<iframe src=‘http://www.google.com’ onClick=“myPopup()”> </ iframe>
<script type=“text/javascript”>
<-
myPopup function () {
window.open (“http://www.google.com/”)
}
//–>
</ script>
Every time someone clicks on the iframe, the function myPopup should open a new window with Google site.
The problem that onClick not working in iframe
(If you try onmouseover for example, then it will work)
How can I make it work?