Ok, sorry about that delay. Due to over-exposure to work, I was clinically dead for a while. But it went away.
Quote:
Originally posted by lumberjim
hey, this is probably premature, but, how do you change the words on the buttons themselves?
does JS support that, or must you create a whole new code or object to be that prompt?
oh, and can you crack the code in a browser or OS and make it change the word that displays on the normal buttons? ie. in stead of the button saying "OK" on it, it could say " Sure, why not"
|
Javscript is limited in what it can do for reasons of security. Among those limitations is the ability to change what the buttons on a
prompt() or
alert() dialog say, nor can you change the title text of these boxes. Otherwise, naughty web developers could make innocent Javascript dialogs look like operating system errors, and stuff like that.
Quote:
Originally posted by lumberjim
{(document.bgColor = "red");
(document.write("Coolness Quotient Test Site"));
alert ("click OK to begin test");
document.write(" Results: You're a tool");
}
how do you change the colors of the words?
how do you clear the page to display the results?
how do you change the location of the text on the page?
|
As for question #2, there really isn't a direct way to clear a page aside from reloading, or loading a new page. It can be accomplished through other means, but we'll get into that stuff later, because that would be getting a little ahead of ourselves. As for question #1 and #3, the answer is to use HTML formatting. I figure I'll start teaching some rudimentary HTML when we get to that point, and if anybody cares enough, I'll include more of that.
More soon.