To turn off autoplay on YouTube, tap or click the autoplay switch.
To stop Microsoft Edge from opening automatically, you'll need to change certain settings on your PC or Mac.