Hello,
I am showing a html file I wrote in my webView in the app. It is a banner and I am using some javascript in the html to rotate the banners. I want a new web browser window to popup when the banner is clicked but does not work. It shows within the webview. I tried _blank and _new in the url link. Can this work from the webView?
Here is the html code I am using. The only other way is to retrieve a list of the banners from the site, pick one to show and then call the url popup code to go to that site. I was trying to not have to do it this way if possible to save trouble.
Thanks!
\<HTML\> \<BODY TopMargin=0 LeftMargin=0\> \<div class="rotating-ads"\> \<script type="text/javascript"\> /\* Rotating Ads per Page Load by Verminox - iFusion - http://forum.ifcode.com \*/ var ad = [] ad[0]=["target-link-here" , "http://www.5ttechnology.com/AYA\_640x82.jpg" , "Title 1"] ad[1]=["target-link-here" , "http://www.5ttechnology.com/cowboy\_640x82.jpg" , "Title 2"] ad[2]=["target-link-here" , "http://www.5ttechnology.com/Gordon\_640x82.jpg" , "Title 3"] ad[3]=["target-link-here" , "http://www.5ttechnology.com/Krymsun Kruzer640x82.jpg" , "Title 4"] ad[4]=["target-link-here" , "http://www.5ttechnology.com/Masterson640x82.jpg" , "Title 5"] x = Math.floor(Math.random()\*ad.length) document.write("\<a href='" + ad[x][0] + "' rel='nofollow' target='\_new' title='" + ad[x][2] + "'\>") document.write("\<img src='" + ad[x][1] + "' width='100%' /\>") document.write("\</a\>") \</script\> \</div\> \</BODY\> \</HTML\>