codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Alerts  Archive Import (Sarah) at 15:49 on Tuesday, July 08, 2003
 

What is the code to make an alert? multiple ones? please!!!! thanks sooo much!!!

  Re: Alerts  Archive Import (nessan) at 16:22 on Tuesday, July 08, 2003
 

function Validate(yourform)
{
if (yourform.yourfield.value == "0") //this a select with initial option = 0
{ alert("Please select"); yourform.yourfield.focus(); return;
if (yourform.yourfield2.value == "")
{ alert("Please fill the field"); yourform.yourfield2.focus(); return; }
else window.location.href=`otherpage`;
}

invoke in the event onchange or onblur...... i hope this code help it.....


  Re: Alerts  Yusairi at 00:37 on Wednesday, July 09, 2003
 

hi nessan,
give me a valuable idea for javascript code.
i`m using that script and it run smoothly.
Yusairi: site expert
http://www.codetoad.com









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  item to item recomender system
•  Re: Database Design
•  Re: Very difficult DHTML:How to add css font class to table cells
•  Re: error
•  Re: Logout Problem
•  Re: about disable form
•  Re: open excel file in html page
•  Re: Connection Problem help needed
•  Re: Open Excel in HTML page


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010