How do you recommend I get around this? I have this example from my book(below), and it uses the onload with document.write. I believe this is why I am confused.
Code:
<script type="text/javascript">
window.onload=initAll;
function initAll(){
var allmonths = new Array ("january","february","march","april","may","june","july","august","september","october","november","december")
<script>
window.onload=myday;
function myday(){
var day=new Array("sunday","monday","tuesday","wednesday","thursday","friday","saturday");
var d=new Date();
theDay=d.getDay();
for (i=0;i<=day.length;i++)
{
if (i!=theDay)
{
Leave a comment: