i'm using this script to change the css link href="#" on the targeted document:
<link id="style1" rel="stylesheet" href="css/style.css" type="text/css" media="screen">
and with button click:
<button type="button" onclick="toggle()">Switch</button>
but with this click i need to change the css link href="#" to all my .html documents.
how to do this with cookies?
(btw i'm beginner with cookies and js.. so i will need the whole code if can)
The following article explains exactly what you are looking for - the ability to define alternative style sheets, how to switch between them, and to store that choice in a cookie.