carnageX
General Moderator
Your Local Techy/PC Guru
SPIDERMAN!
Posts: 1,621
|
Post by carnageX on May 28, 2006 22:03:41 GMT -5
www.freewebs.com/codingtest1Well, I took a few weeks to learn some basic HTML and (very) basic JS coding. And I decided to use FreeWebs as a site to use, because it's easy to input codes on XD. What do you think of m3h c0d1ng 4tt3mp+s?
|
|
Samuel
Former Coding Moderator
:D
Posts: 154
|
Post by Samuel on May 29, 2006 1:44:56 GMT -5
Its very good for "attemps" which says "I'm quite new to this" in my ears. Do you understand if and else? if so you can use them on the confirm box.
According to the source there is if/else options for it, try this:
function disp_confirm(){ var name = confirm("A problem has occured!" + '\n' + "Drive C: will now be erased and reformatted." + '\n' + "Press OK to continue, or Cancel to cancel the operation.") if(name == true){ alert("Drive C: has now been cleared and reformatted. Press OK to continue.") } else{ alert("Error occured while processing the requested operation." + '\n' + "Drive C: has now been erased.") } }
|
|