ScreenOrientation: unlock()-Methode
        
        
          Limited availability
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is not Baseline because it does not work in some of the most widely-used browsers.
Die unlock()-Methode des ScreenOrientation-Interfaces entriegelt die Ausrichtung des enthaltenen Dokuments, wodurch es effektiv auf die Standardbildschirmorientierung gesperrt wird.
Syntax
js
unlock()
Parameter
Keine.
Rückgabewert
Keine (undefined).
Ausnahmen
InvalidStateErrorDOMException- 
Wird ausgelöst, wenn das Dokument nicht vollständig aktiv ist.
 SecurityErrorDOMException- 
Wird ausgelöst, wenn der Sichtbarkeitsstatus des Dokuments ausgeblendet ist oder wenn dem Dokument die Nutzung der Funktion untersagt ist (zum Beispiel durch das Fehlen des Schlüsselworts
allow-orientation-lockimsandbox-Attribut desiframe-Elements). 
Spezifikationen
| Specification | 
|---|
| Screen Orientation> # dom-screenorientation-unlock>  | 
            
Browser-Kompatibilität
Loading…