开发者

How to trigger the Back browser button from a Flex app with deep linking

开发者 https://www.devze.com 2023-01-23 18:31 出处:网络
How can I programmatically click the browser\'s Back button from within my Flex application. I\'m using deep linking to allow the user to navigate back/forth inside my application. I want this to wor

How can I programmatically click the browser's Back button from within my Flex application.

I'm using deep linking to allow the user to navigate back/forth inside my application. I want this to work when BACKSPAC开发者_运维百科E is clicked inside the application as well, but Flex captures BACKSPACE and the browser doesn't get the event. I don't want to implement browsing history myself within the application, naturally.

Any ideas? Can I send BACKSPACE to the containing browser? Can I specifically invoke "BACK" in the browser from javascript maybe?


you can try a JavaScript/Flex bridge. write a JS function that sends the browser back, and invoke it from within Flex.

have a look at ExternalInterface

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号