Hello,
I know this question is outside PHP but I could not find answers with my brief research - I will withdraw this if necessary
My site has an iFrame that would display banner ads from third parties. Those banner ads will open EITHER in a new window OR in the parent window (parent window = the window holding the iFrame), depending on the banner files - the URL and link target are embedded in the Flash banners.
My sample page with iFrame:
http://www.cofatsui.com/h5/00-h5banner1x1.php
I wonder what the JavaScript code would be like that would force all banner links to open in *only* the parent window, for consistence sake. (Opening in *only* a named new window is also okay, as long as the target is consistent for all banners.) I know PHP cannot do this.
I do not know JavaScript coding so any help, or any direction to other JavaScript forums, would be appreciated.
Thanks!
Cofa