|
09-01-2005, 08:05 AM | #1 |
Member
Join Date: Aug 2005
Location: Adelaide, South Australia
Posts: 104
|
Help with JavaScript coding
I'm in the middle of a web design course and the current assignment is about using JavaScript to verify entries on an order form. I have pretty well all the work done but am having trouble on a couple of areas.
First one is this script given to us in the tutorial to demonstrate a simple script. Code:
<script language="JavaScript" > currentDate=new Date(); with (currentDate){document.write( getDate() +"/" + getMonth() + "/" + getYear())} </script> Second problem is a page that brings up a Help page when a button is pushed. This runs under a set of frames (blech!) so the code for this is Code:
function openHelp() { parent.frames[1].location.href="joeshelp.html"; } <input type="button" value="Click to open the Help page" onclick="openHelp(event);"> Anybody able to give me some clues or point me in the right direction about this stuff? __________________ Cheers, Ian |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firefox 1.5 JavaScript Console | Kelvyn | Web Site Building & Maintenance | 0 | 12-13-2005 12:01 PM |