About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > Alert...

   Browse by title articles:
   What is hot:

Loops

Get

NoScript

BaseScript

Alert

Confirm

Top 10 Biggest Mistakes of Website Design
Keep your navigation simple!
Adding/Replacing Arrays
Static Discharge Causes Flaky Damage
Prev articles12 3 45Next articles



Alert


Computer & I'net articlesAlert

by David Stanley    



You have probably come across some sites that have an ALERT information box pop-up. This happens to be one of the most basic functions that JavaScript can perform.

JSalert

Alert boxes are used to display some text information and have the visitor click on the OK button to continue on. This script is usually placed in the HEAD area of the code which makes the box appear before the actual page load.

<script type="text/javascript">
<!--

alert ("This is a JavaScript ALERT box.")

// -->
</script>


ALERT creates the actual ALERT box to appear. Anything placed within the double quotes will become the message that appears on the ALERT box.

You can use it for in different instances as well such as putting it into a function then calling it when required.




-----------------
Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.




Articles

Auto & Trucks

Business

Computer & I'net

  ·General

  ·Apache

  ·CSS

  ·Database

  ·Hardware

  ·HTML

Javascript&DHTML

  ·Linux

  ·MySQL

  ·Operating System

  ·Perl / CGI

  ·PHP

  ·Programming

  ·Publishing

  ·Search Engines

  ·Software Problems

  ·SSI

  ·Tips & Tricks

  ·Utilities

  ·Web Design

Family

Food & Drink

Gardening

Health

Other

Pets

Psychology

Spiritual

Travel

Women

 Calculators

Hourly wage




  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com