Hi all,
I have a project posted to the web on http://paradise.01cyb.org/
This project uses regular frames.
There are embedded links in the space on the right (over the video). They have been instructed to open various websites in the frame on the left when you click them. This is the code I use: this[“w1”].addEventListener(MouseEvent.CLICK, goToStatement)
function goToStatement(e:MouseEvent) {
var url:URLRequest = new URLRequest("http://images.google.com/images?um=1&hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=beach&btnG=Search+Images");
navigateToURL(url, "frame3");
}
I have tested this on Safari and Firefox on a Mac and a PC. In all of them its the same problem–sometimes the project works as directed, and the linked URLs open in the left frame. But at other times, the browser simply defaults to a new window/tab (which is not supposed to happen.) It is not specific URLs that open in a new window. Rather, it is completely random if and when this happens. It is also not due to mistakes in spelling in my code, I have checked.
Can anyone tell me how to keep the content from opening in a new window/tab, i.e. to open in the frame that I have programmed it to open in? I have searched on multiple forums, and wherever a post regarding a problem of similar nature has been posted, no successful solutions have been offered!
I don’t really have the knowledge or resources to redesign the entire project. If you have specific instructions on how I can make changes within my existing code or browser settings that would override this problem, that would be ideal.
Thanks!