0 votes
73 views
asked in HTML5 by (8.2k points)
Hi All,

   I want to know whether the feature or functionality is available or not in the HTML attributes. For an example the "orientation" functionality is not available in screen(Safari).

Thanks in advance

1 Answer

0 votes
answered by

Hi,

  You can try the following piece of code

 if ("orientation" in window.screen){
     console.log("Orientation feature available ")
   }else{
     console.log("Orientation feature not  available ")
   }

Categories

...