Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7093467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:26:34+00:00 2026-05-28T08:26:34+00:00

I have a webview in an iOS App. I have a select box with

  • 0

I have a webview in an iOS App. I have a select box with some values and some javascript code to be executed when the combo changes.

In the browser the same html works ok, but in webview my window.location = url sentence is not working.

How can I do redirect to an url through javascript?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:26:35+00:00Added an answer on May 28, 2026 at 8:26 am

    Try this:

    window.location.href = url;
    

    EDIT:
    Try to test your code in mobile Safari on your iOS device (e.g. make the page accessible via your Wi-Fi network) and see what’s happening. If it doesn’t work as well, you’ll probably need to check if your redirection executes at all and if your jQuery code does not stop redirection.

    EDIT2:
    Do you conform to UIWebViewDelegate protocol and implement its webView:shouldStartLoadWithRequest:navigationType: method? If not, implement it and return YES if the web view should begin handling your request (you can filter request you want to handle etc.) – more about UIWebViewDelegate you’ll find in docs here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webview in my iPhone application, and I also have some html
I have a WebView. I'd like to show some page from my server, but
In my project (iPhone app) I have a nice webview to allow users to
I have a Cocoa app that uses a WebView to display an HTML interface.
In order to switch between views in my iOS app, I have been using
I have a localized iOS application in which I wish to include some localized
I am learning to write an iOS-native webkit app. In Xcode 3.x, I have
I have the following simple code to display a pdf in a webview. I've
in an iOS app I have to display a list of text items that
This is a MacOS programming question, not iOS (iPhone) programming. I have a WebView.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.