CODE
<html>
<head>
<script type="text/javascript">
function show_hide(id, show) {
if (el = document.getElementById(id)) {
if (null==show) show = el.style.display=='none';
el.style.display = (show ? '' : 'none');
}
}
</script>
</head>
<body>
<table><tr><td><a href="#" onclick="show_hide('tbl')"><img src="blah.jpg" alt="click to hide table" /></a></td></tr></table>
<table id="tbl"><tr><td>test row 1</td></tr><tr><td>This is a test table!</td></tr></table></body>
</html>
<head>
<script type="text/javascript">
function show_hide(id, show) {
if (el = document.getElementById(id)) {
if (null==show) show = el.style.display=='none';
el.style.display = (show ? '' : 'none');
}
}
</script>
</head>
<body>
<table><tr><td><a href="#" onclick="show_hide('tbl')"><img src="blah.jpg" alt="click to hide table" /></a></td></tr></table>
<table id="tbl"><tr><td>test row 1</td></tr><tr><td>This is a test table!</td></tr></table></body>
</html>
My question is how could I store (most likely in a cookie) rather the user left the table minimized or maximized so when they returned to the page later it would be the way that they left it?