Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

How to open AIR HTML links in new tab/window?

$
0
0
Hi all,

I'm building a browser app with the AIR/Flex HTML component, I've been scratching my head with this, and I hope it's pretty basic - I want to create a tabbed browser. Help will be greatly appreciated.

First Step:
1. I want to be able to open up links in a new html window/tab *always*. I'm comfortable creating my own tabs, but I can't seem to trap the location change event *before* it loads the content in the same window - I'd like the window from which the link was clicked to remain the same.

Second Step:
2. I want to capture control+click to conditionally open up links clicked in a new browser tab - and if it's clicked normally only then load the link in the same html window. I've tried trapping control+click, location change, but I can't seem to *stop* the location change from happening in the html window from which it was clicked.

Any ideas?

Thanks and regards!

Viewing all articles
Browse latest Browse all 21156

Trending Articles