I am familiar with cgi and php but I never have learned javascript. I have a copy of a javascript game that says 'you win' when you win. I need it to either give a link or go to a new web page at that point. Adding a basic html link after You win doesn't work so I assume I need a javascript code here. Can anyone help?
HTML Code:if(win(tic_tac_toe, Computer_Letter())) { document.tic_tac_toe.message.value = 'I win'; } if(win(tic_tac_toe, Player_Letter())) { document.tic_tac_toe.message.value = 'you win'; }


Reply With Quote

Bookmarks