does anybody know how to close a page in javascript. in dreamweaver cs5.5 I have a promopt that comes up and if the field is invalid i want it to close the page im on, ive used document.close nad window.close and it does not close the page im on

@TheJSBachMr Thanks for your comment. I got it all sorted actually… I did a full course on javascript programming that taught me everything i needed for form validation and a whole bunch more as well. tryimg to copy and paste other people's code just didn't work no matter what i did, or how many different versions I tried so i had to teach myself… which was a much better solution anyway. 🙂