Dany Balian
asked on
pages loaded in iframe alter the main page history
hello,
i have an iframe in which i load different sets of banners.... (html)
the banner page reloads itslef using a javascript settimeout function
its working perfectly, but what i noticed is that, when the user clicks on the back button, of the browser, or when he clicks the refresh button, actually its the iframe that get the command...(which will go back to the previous ad, or refresh the current one...)
how can i do this...
i am using an <iframe name="dany"></iframe>
then from a javascript inside the main page, i am changing the location of the iframe.
any suggestions?
thanks
Dan
i have an iframe in which i load different sets of banners.... (html)
the banner page reloads itslef using a javascript settimeout function
its working perfectly, but what i noticed is that, when the user clicks on the back button, of the browser, or when he clicks the refresh button, actually its the iframe that get the command...(which will go back to the previous ad, or refresh the current one...)
how can i do this...
i am using an <iframe name="dany"></iframe>
then from a javascript inside the main page, i am changing the location of the iframe.
any suggestions?
thanks
Dan
one way is to use a div instead of an iframe and use your JS function in the "main" page to set the innerHTML of the div, or change the image src.
ASKER
yeah man great idea...
but the problem is that with inner html i cannot load flash objects
i tried that, and i was able to rotate images, text, hyperlinks, tables, any html code except for a flash object!!
the banner.innerHTML="<object ...." does not work...
this is why i thought of iframe and that way i can change its source... which brings me to my problem...
thanks, any other suggestions?
Cheers, Dan
but the problem is that with inner html i cannot load flash objects
i tried that, and i was able to rotate images, text, hyperlinks, tables, any html code except for a flash object!!
the banner.innerHTML="<object ...." does not work...
this is why i thought of iframe and that way i can change its source... which brings me to my problem...
thanks, any other suggestions?
Cheers, Dan
ASKER
just as a hint!!
when i check on the back history button (i can see a list of my ads turning...)
Advertisement
Advertisement
Advertisement
Advertisement
Advertisement
Advertisement
so a hint would be maybe to alter the history of the browser so that it doesnt load this frame's location into history... could that be done?
can we specify if we want to include the curent page's location in history or not?
Cheers, Dan
when i check on the back history button (i can see a list of my ads turning...)
Advertisement
Advertisement
Advertisement
Advertisement
Advertisement
Advertisement
so a hint would be maybe to alter the history of the browser so that it doesnt load this frame's location into history... could that be done?
can we specify if we want to include the curent page's location in history or not?
Cheers, Dan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.