Click to See Complete Forum and Search --> : i need a little bit of help
plasticarmyman
06-23-2006, 09:57 PM
ok....i just joined this site so i could ask someone how to make a little window popup on my page...like a little welcome message with an "ok" button on it....you know like the windows that popup when you empty your trash can and it says "are you sure you want to empty the trash?"....if anyone could help me with this it would be greatfully appreciated...
Kevey
06-23-2006, 10:50 PM
There are probably a lot of ways to do it, and here's one way:
<SCRIPT LANGUAGE="javascript">
<!--
function CONFIRM(){if (!confirm
("Are you sure you want to empty the trash?"))
history.go(-1);return " "}
document.writeln(CONFIRM())
<!-- END -->
</SCRIPT>
plasticarmyman
06-25-2006, 12:34 AM
thank you very much...but i forgot to say that i needed it in html...i'm totally not good with coding or anything....i shoulda took some classes in highschool....
Kevey
06-25-2006, 06:09 AM
All you need to do is paste the script inside the <head></head> tags in your existing page. Remember that the script won't work for people that turn it off in their browser.