mierlp Posted December 13, 2015 Posted December 13, 2015 hi When the user is running our web application there's a button to go to a customers website. We don't want them to use the IE on the server so we open the url in a uniFrame. But...how can i navigate when the user opens the customer site into the urlframe and navigates to other pages within the customer site. Within a TWebbrowser you can GoBack/GoForward. Or are there other suggestions ? Regards Peter Quote
bugra Posted December 14, 2015 Posted December 14, 2015 You may do it with JS procedure TMainForm.UniURLFrame1FrameLoaded(Sender: TObject); begin UniSession.AddJS('var url = document.getElementById("component-1009").contentWindow.location.href;'); end; you may add this url into some JavaScript Array and create history. But when you do this, you might get this error Permission denied to access property "href" Cause accessing a frame URL with JS (or another way) is too risky for website security and they're not allow that because of it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.