MarkMeerten
Programmer
Hello,
I'm trying to put a bit of user - interaction in my JScript.
I want to display a confirm - or promt messagebox in the script.
e.g.: window.confirm("Here goes my text"
;
If i call the script in a html file with <body onload...> no problem.
But i want to use it in a .js - file. If i put this line of code in my script i always get errormessages!
Even if i leave "window." out of the command it doesn't work!!
Does anyone have an example of a working JScript (*.js) where a messagebox is displayed??
Thanx,
Mark
I'm trying to put a bit of user - interaction in my JScript.
I want to display a confirm - or promt messagebox in the script.
e.g.: window.confirm("Here goes my text"
If i call the script in a html file with <body onload...> no problem.
But i want to use it in a .js - file. If i put this line of code in my script i always get errormessages!
Even if i leave "window." out of the command it doesn't work!!
Does anyone have an example of a working JScript (*.js) where a messagebox is displayed??
Thanx,
Mark