Instead of stop()
you could try with:
sound.pause();
sound.currentTime = 0;
This should have the desired effect.
More Related Contents:
- HTML 5 Audio Tag Multiple Files
- How do I make an file play continuously on all pages?
- Setting the granularity of the HTML5 audio event ‘timeupdate’
- Vertically center element on HTML page with some content on top (Bootstrap)
- Make body have 100% of the browser height
- Should I put input elements inside a label element?
- How to create a circle with links on border side
- CSS Cut out circle from a rectangular shape
- Problems with CSS sticky footer
- How to limit the maximum files chosen when using multiple file input
- What is quirks mode?
- href syntax : is it okay to have space in file name
- Example of multipart/form-data
- Limit the size of a file upload (html input element)
- How to select a text node with CSS
- CSS background-size: cover replacement for Mobile Safari
- How can I make a CSS glass/blur effect work for an overlay?
- How to exclude particular class name in CSS selector?
- How to make div element auto-resize maintaining aspect ratio?
- Do I need a “/” at the end of an or tag, etc.? [duplicate]
- How do I prevent the padding property from changing width or height in CSS?
- Div width 100% minus fixed amount of pixels
- Force to download image instead of opening url link to image [duplicate]
- How to specify model to a ngInclude directive in AngularJS?
- HTML parsing in perl
- How do I style the HTML form validation error messages with CSS?
- Cross-browser embedded font in svg image
- How do I trigger an HTML button when the “Enter” key is pressed in a textbox?
- Adding style to file upload button in css
- What are the default values for justify-content & align content?