|
Hi,
I need to respond to the event of a nested IFrame from its parent which is also an IFrame.
Here`s a simplified example:
<html>
<body>
<iframe id="if1" width=500 height=200></iframe>
<script language=javascript>
<!--
var msg = "`Context Menu here!`"
if1.document.open()
if1.document.write(`<html><body bgcolor=red oncontextmenu="alert(` + msg + `)"><iframe id=if2></iframe></body></html>`)
if1.document.close()
//-->
</script>
</body>
</html>
When clicking the red IFRAME with the alternative mouse button you`ll see a message.
What I need is to show the same message when the user clicks over the white IFRAME.
Thanks in advance!
|
|
|
Add these 2 lines below your if1.document.close() line:
1. if1.if2.document.write(`<html><body bgcolor=white oncontextmenu="alert(` + msg + `)"></body></html>`)
2. if1.if2.document.close()
|
|
|
|
|
Thanks Troy!
I tried to do the same, but the actual case is a more complex, my example was just a simplication.
When right clicking the red IFRAME it shows a context menu on the document, so the idea is to do the same thing in the white nested IFRAME.
So is there a way to bubble the event, so that when you right click the white nested IFRAME it calls the red parent IFRAME`s event?
|
|
|
|
|
Thanks!, it`s a good article, but it looks like the oncontextmenu event doesn`t bubble... anyway, I found my way by calling the function from the nested IFRAME.
Now I have a different problem:
Since the right click event takes place in the IFRAME, the X and Y coordinates i`ll have will be those of the IFRAME.
The thing is that I want to show the contextual menu in the main document... so how would I know the X and Y for the contextual menu?
|
|
|
Hmmm...I`m not sure what you want to do, but perhaps some others will reply with a good answer!
|
|
|
|
|
|
|
|
|
Save yourself potential heartbreak later and store your dress Cocktail Dresses correctly with an acid free, pH neutral wedding dress box. This way you know your dress will be safe through it all and when it is time to renew those vows, you will be ready to go.
There are many different styles of wedding dresses, almost as many styles of wedding dresses as there are shapes of women. No two women are shaped the same and that is why it is so important Ball Gown Wedding Dresses to get wedding dresses tailored to fit the bride. This often costs more money but it is well worth it if you want to look your best as you walk down the aisle. This should be the goal of all wedding dresses, to highlight all of the brides best features and attributes.
The styles of wedding dresses change with the seasons but there are a few classic styles that will never get old or go out of style. The classic A line dress is one of the wedding dresses. Of A-Line Wedding Dresses all the wedding dresses on the market today A line wedding dresses are the best. These wedding dresses look good on any woman, no matter what she looks like and what she weighs. It is the A line wedding dresses that flatter every woman alike. This cannot be said for any other of the wedding dresses out there.
When you first go shopping for wedding dresses you will want to have a sit down with the bridal consultant at the bridal boutique. He or she will be able to give you some helpful advice about Wedding Accessories which of the wedding dresses will flatter you the most. These consultants are so useful when you are looking at wedding dresses.
You should also try on all kinds of different wedding dresses just to make sure that you choose the perfect one. You need to try all of these wedding dresses to find the one that is the most comfortable and the one that will make you feel the most like a queen. That is what wedding dresses need to do, make you feel like one of a kind because that is what you are and that is why your husband to be loves you so much.
The wedding dresses that you try on can be of any color. White Venice Film Festival Dresses is the most common color of wedding dresses but there is no reason that you have to stick with it. If you want a bright red wedding dress then you should have it that is your right as a bride. If the wedding dresses you are trying on are not what you are looking for you should let your bridal consultant know. This consultant will go through all of the wedding dresses in their boutique in order to try to find the one that you will like. They can also show you some wedding dresses from their catalogs. If you see some that you think you might like your boutique should be able to order in these wedding dresses.
Your bridal boutique should be able to deal with Wedding Veil all of your concerns with wedding dresses. If they are not then you might want to think about looking for wedding dresses elsewhere.
|
|
|
Today I found a wonderful website,the site contained:
wedding dresses
cheap wedding dresses
Junior Bridesmaid Dresses
Cheap Homecoming Dresses
Cheap Quinceanera Dresses
Inexpensive bridesmaid dresses
Wholesale wedding dress
Wholesale wedding dress
Discount wedding dresses
Cheap Maternity Wedding Dresses
A-Line Wedding Dresses
Cheap Couture Wedding Dresses
Cheap Beach Wedding Dresses
Cheap Casual Wedding Dresses
Cheap Simple Wedding Dresses
Cheap Modest Wedding Dresses
Cheap Special Occasion Dresses
Cheap Evening Dresses
Cheap Prom Dresses
Cheap Little Black Dresses
Cheap Plus Size Wedding Dresses
Pink Wedding Dresses
Cheap Wedding Party Dresses
Cheap Bridesmaid Dresses
Cheap Flower Girl Dresses
Cheap Mother of the Bride Dresses
victoria's secret,
cheap wedding dresses,wholesale wedding dress,Wedding dresses 2011,Plus Size Wedding Dress wholesale,Couture Wedding Dress wholesale,Formal Wedding Dress wholesale,Bridesmaid Dresses wholesale,Discount Bridesmaid Dress wholesale,Junior Bridesmaids Dresses wholesale,Maternity Bridesmaid Dress wholesale,Cocktail Dress wholesale,Prom Dress wholesale,Evening Dress wholesale,Sexy Evening Dress wholesale,Stardoll Dress wholesale,Quinceanera Dress wholesale,Mother of the Bride Dress,Flower Girl Dress,Wedding Accessories wholesale
|
|
|
|
|
There will not be any louis vuitton outlet handbags made in Korea, carry out of story. washing cleaning soap be unfortunate adequate to non-public gucci outlet that which you believed was a geniune instructor bag, only to locate upon receiving your bag that this louis vuitton bags stated in Korea for that tag, go back gucci sale or consider it back again immediately for merely a refund. that is not really a genuine instructor louis vuitton bags outlet  and you undoubtedly are a complete gucci purses offer more content not buying some dilemma from that company.The stress sharp increase will carry out result within your transmit gucci outlet the material–The glutanic acid salt's propagation velocity www.luxurysaleup.com up, so promotes the memory.6.
|
|
|