I would like to add some code to my script so i can logout from yahoo.com at the moment the button i set to display time. I was thinking about deleting some browser cookies with a script but how ?
<!DOCTYPE html>
<html>
<body>
<h1>Press the button to logout</h1>
<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Logout</button>
<p id="demo"></p>
</body>
</html>