var seasons = new Array(4)
seasons[0] = "Fall"
seasons[1] = "Winter"
seasons[2] = "Spring"
seasons[3] = "Summer"
var browser = navigator.appName
var version = navigator.appVersion
function promptwindow() {
var promptwin = prompt("What is your name?",""
;
if ( (promptwin == null) || (promptwin == ""
)
promptwin = "NO DATA"
newWindow=window.open("","","status,height=200,width=300"
;
newWindow.document.open();
newWindow.document.write('<html><body>');
newWindow.document.write(promptwin);
newWindow.document.write('<br><strong>Browser:</strong> ', browser);
newWindow.document.write('<br><strong>Version:</strong> ', version);
newWindow.document.write('<br><strong>Time:</strong> ', getMinutes());
newWindow.document.write('</body></html>');
newWindow.document.close();
}
ok so what i need is if the browser deteched is in IE, for it to say "fall" in the array found above, and if it is Netscape to say "Winter" if other "Spring"
also does anyone know how to display the minutes and hours? (hh:mm)??
both of these need to appear in the newWindow.
i thought it was 'getMinutes' but its not working
seasons[0] = "Fall"
seasons[1] = "Winter"
seasons[2] = "Spring"
seasons[3] = "Summer"
var browser = navigator.appName
var version = navigator.appVersion
function promptwindow() {
var promptwin = prompt("What is your name?",""
if ( (promptwin == null) || (promptwin == ""
promptwin = "NO DATA"
newWindow=window.open("","","status,height=200,width=300"
newWindow.document.open();
newWindow.document.write('<html><body>');
newWindow.document.write(promptwin);
newWindow.document.write('<br><strong>Browser:</strong> ', browser);
newWindow.document.write('<br><strong>Version:</strong> ', version);
newWindow.document.write('<br><strong>Time:</strong> ', getMinutes());
newWindow.document.write('</body></html>');
newWindow.document.close();
}
ok so what i need is if the browser deteched is in IE, for it to say "fall" in the array found above, and if it is Netscape to say "Winter" if other "Spring"
also does anyone know how to display the minutes and hours? (hh:mm)??
both of these need to appear in the newWindow.
i thought it was 'getMinutes' but its not working