Jump to content

[SOLVED] alert message using java


girlzz

Recommended Posts

No offense, but look into the basics of JavaScript.

 

 

First off, Java != JavaScript.

 

if(<dup entry>) {

    //blah

}

else {

    //blah

}

 

 

No idea how you're checking for duplicate entries.  Also, you'll want to look into alert(), and maybe confirm().

like corbin said

 

Java != JavaScript.

 

which means Java is a complete different thing then javascript

 

i suggest you start with opening one popup

<script>
function popup(){
  //open a popup
}
</script>
<button onclick="popup()">open popup</button>

 

the function does nothing yet thats up to you

erk confuse! still can't understand...  :'(

 

First, like everyone else has said, Java and JavaScript are not the same thing.  Other than their names, the two have nothing in common.  Java is an object oriented programming language whose programs run on a virtual machine.  It was created by Sun Microsystems.  JavaScript is a scripting language which runs in a web browser.  It was created by Netscape.  Continuing to refer to JavaScript as Java will cause people to point and laugh.

 

Second, do you have any idea as to what you're doing.  I mean, we can all write an onclick callback function to open up popup windows, and show you the basic code (like two people have already done), but that's all worthless if you don't actually understand what it is you're looking at.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.