Hi! I was wondering if anyone knew of a way to make a webpage hide itself, i.e minimise to tray, so that it could be brought up later. I would like to implement this feature on one of my websites and was wondering if there was a way for the website to hide itself, like above, on the click of a link. Thanks, Will
You can create pop-under windows, but they would be blocked by most browsers, plus they are annoying. You could create an element on your page that "minimizes": <script> var isopen=false; function openclose() { if (isopen == false) { document.getElementById('myelement').style.display=''; isopen=true; }else{ document.getElementById('myelement').style.display='none'; isopen=false; } } </script> <div id="myelement" style="display:none;"> This is some information..... </div> <a href="javascript:openclose();">Open/Close myelement</a> Code (markup): This is probably not what you are looking for... ... but I figured I would try.
Thanks for trying guys! @KYE172 the script isn't working in my IE7 but I'm not after minimising/maximising anyway @nfd2005 this wasn't actually what I was looking for, but it's given me an idea how to do it a different way! Instead of just hiding the whole window, I could just add that script to hide the information in that window, essentially make it go blank! Excellent! Thanks so much