I am a Javascript beginner.
I try to have these two pieces of html placed into the markup. The anchors' IDs are set from tab-1 to tab-6.
This is what I've wrote so far. It doesn't do anything. Anybody got some ideas?
<script>
if (window.location.hash == "#tab-1" || "#tab-2" || "#tab-3" || "#tab-4" || "#tab-5" || "#tab-6") {
} else {
document.write("<div id="tagline"><p id="quote">"Play for fun or don't play at all!"</p> <p id="namer">- S. Pussehl</p> </div>")
}