1

If my question/wording is a bit off, I apologize as I'm new to Objective-C and Xcode. Anyways, I am using the WebView property to open my website. Once on my site I have a form on a page within my website that when a user submits it brings up an alert stating "Message sent! Should the seller take interest they will reach out to you". Here's the html code from my website.

<script type="text/javascript"> function SendAlert() { alert("Message sent! Should the seller take interest they will reach out to you"); } </script> While I'm on the native Safari app from my iPhone the Sendalert() function works fine, not when I'm on the app from my Xcode project. Here's the code I have in my ViewController.m file.

-(void)viewDidLoad { [super viewDidLoad]; NSString *myURL = @"https://example.com/"; [_myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:myURL]]]; return; }

What am I missing that is preventing my alert() functions from showing in my app? If there's something you need that I didn't list please let me know!

2
  • Possible duplicate of iOS WKWebView not showing javascript alert() dialog Commented Jun 24, 2018 at 5:22
  • @nakano531 Alright, thanks, I'll take a look and post another reply if it isn't and I need additional help. Commented Jun 24, 2018 at 13:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.