Javascript newbie, how to choose between window.URL.createObjectURL() and window.webkitURL.createObjectURL() based on browser
Posted
by
Rohith Raveendran
on Stack Overflow
See other posts from Stack Overflow
or by Rohith Raveendran
Published on 2012-06-30T21:07:21Z
Indexed on
2012/06/30
21:16 UTC
Read the original article
Hit count: 513
JavaScript
|dom
From the firefox developer website I know that firefox use objectURL = window.URL.createObjectURL(file); to get url of file type, but in chrome and other webkit browsers we have window.webkitURL.createObjectURL() for detecting url.
I don't know how to swap this functions based on browser engines, and I need it to be worked on both browsers (Chrome and firefox)
https://developer.mozilla.org/en/DOM/window.URL.createObjectURL
© Stack Overflow or respective owner