0

I created an html page ( footer ) that contains some links that are supposed to be opened in a new tab when clicked . the html page was embedded in an iOS and android native apps . in the IOS app , the links works fine ( when clicked , a new tab is opened ) , but in the android app nothing happens when I click on the links . this behavior was tested on many devises . what could be the reason of this issue ?

sample of the html content on the page :

 <div class="footer">
        <div class="item ">
            <a href="https://text/" target="_blank">
                test
            </a>
        </div>
        
     </div>
Razi Melliti
  • 140
  • 1
  • 2
  • 16
  • Does this answer your question? [How to open link in a new tab in HTML?](https://stackoverflow.com/questions/17711146/how-to-open-link-in-a-new-tab-in-html) – Prakhar Doneria May 09 '22 at 03:52
  • I think you ate using HTML from the code provided in question. Try removing _ in target="_blank" then it may work. – Prakhar Doneria May 09 '22 at 08:32
  • Yes it is just a simple html footer embedded into a native android app – Razi Melliti May 09 '22 at 09:14
  • So if you are using java WebView you can simple load your URL in View and can surf page, if you face problem with JavaScript you can enable JavaScript for WebView by default it is disabled. – Prakhar Doneria May 09 '22 at 10:33

1 Answers1

-2

To open a link in new browser tab you can use the following HTML code

<a href="https://protecgames.godaddysites.com/" target="blank"> ProTec Games </a>

The target should be left blank if you want to open new tab.

For more clearly see an example on W3School