Quote:
|
Originally Posted by Caspar
Basic syntax is as below:
Code:
<SCRIPT LANGUAGE="JavaScript">
today = new Date();
day = today.getDay();
if (day == "2") {
document.write ("Launch popup")
}
else {
document.write ("don't launch popup")
}
</script>
|
So I have to stick the whole of the extra javascript and HTML in document.writes? Parsing that is going to be a nightmare .. think I'll tell them it can't be done with JS and coax them into letting me do it with ASP
The popup isn't actually a new window as such, it's a div and it's part of the page so it can't appear in a new window.