• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. USBDevice
  4. USBDevice.open()

Table of contents

  • Syntax
  • Specifications
  • Browser compatibility

USBDevice.open()

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The open() method of the USBDevice interface returns a promise that resolves when a device session has started.

Syntax

var promise = USBDevice.open()

Parameters

None.

Return value

A promise.

Specifications

Specification
WebUSB API
# ref-for-dom-usbdevice-open①

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Sep 14, 2021, by MDN contributors

Related Topics

  1. USBDevice
  2. Properties
    1. configuration
    2. configurations
    3. deviceClass
    4. deviceProtocol
    5. deviceSubclass
    6. deviceVersionMajor
    7. deviceVersionMinor
    8. deviceVersionSubminor
    9. manufacturerName
    10. opened
    11. productId
    12. productName
    13. serialNumber
    14. usbVersionMajor
    15. usbVersionMinor
    16. usbVersionSubminor
    17. vendorId
  3. Methods
    1. claimInterface()
    2. clearHalt()
    3. close()
    4. controlTransferIn()
    5. controlTransferOut()
    6. isochronousTransferIn()
    7. isochronousTransferOut()
    8. open()
    9. releaseInterface()
    10. reset()
    11. selectAlternateInterface()
    12. selectConfiguration()
    13. transferIn()
    14. transferOut()
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies