I'm looking for the autoplay code please [getElementById]

Can you check that it works on here first before sending me the code.

I’m looking for the autoplay code please.
var player = document.getElementById('player').

<button id="playButton" style="border:none; width: 200px; height: 200px; cursor: pointer; font-family:Tahoma; font-weight: bold;font-size:14px; background-color:red;color:blue;" onclick="  
var player = document.getElementById('player').volume='1.0';
var button = document.getElementById('playButton');
  var player = document.getElementById('player');
  if (player.paused) {
playButton.style.backgroundColor = 'red';

player.play();
  } else {
   
playButton.style.backgroundColor = 'red';
   
player.pause();
  }">
  </button>

<audio id="player" style="display:none;">
  <source src='http://hi5.1980s.fm/;' type='audio/mpeg' />
</audio>