- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Does HTML5 allow you to interact with local client files from within a web browser?
No, HTML5 does not allow you to interact with local client files directly. You can use drag and drop or FileSystem API for this.
Example
Let us see an example of drag and drop on a web browser using HTML5 −
<!DOCTYPE HTML> <html> <head> <style> #boxA, #boxB {float:left;padding:10px;margin:10px; -moz-user-select:none;} #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB { background-color: #FF6699; width:150px; height:150px; } </style> <script> function dragStart(ev) { ev.dataTransfer.effectAllowed='move'; ev.dataTransfer.setData("Text", ev.target.getAttribute('id')); ev.dataTransfer.setDragImage(ev.target,0,0); return true; } </script> </head> <body> <center> <h2>Drag and drop HTML5 demo</h2> <div>Try to drag the purple box around.</div> <div id = "boxA" draggable = "true" ondragstart = "return dragStart(ev)"> <p>Drag Me</p> </div> <div id = "boxB">Dustbin</div> </center> </body> </html>
- Related Articles
- Does HTML5 allow you to interact with local client files from within a browser?
- How does selenium interact with the Web browser?
- How to allow the restricted resources from another domain in web browser with HTML5
- Different ways to interact with SAP system from a web application
- How to check web browser support in HTML5
- Can Selenium interact with an existing browser session?
- Implement Onclick in JavaScript and allow web browser to go back to previous page?
- I need a client side browser database in HTML5. What are my options?
- How does selenium webdriver upload files to the browser?
- Copy Files from Docker Container to Local Machine
- Downloading files from web using Python?
- How to open a website in Android’s web browser from any application?
- Coolnovo a web browser similar to google chrome
- Difference between Web Browser and Web Server.
- Log error to console with Web Workers in HTML5

Advertisements