際際滷

際際滷Share a Scribd company logo
Validation:
<script type="text/javascript">
//Start JavaScript Function
function verify()
{
//for field must take some input
if(document.forms["form1"]["name"].value=="")
{
alert("Please give the name");
return false;
}
}
</script>
<form method="POST" action="test3.asp" name="form1" onSubmit="return verify()">
<!-- Creating Table, having 11rows and 2 columns. -->
<table border="2" align="center" cellpadding="7">
<!-- Start First Row -->
<tr>
<!-- Creating First Column -->
<td><strong>Name:</strong></td>
<!-- Creating Second Columns -->
<td>
<!-- TextBox -->
<input type ="text" name="name"/>
<input type="submit" value="Submit" />
</form>

<!DOCTYPE html>
<html>
<body>
<p id="demo">Click the button to do a case-insensitive search for "w3schools" in a string.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var str = "Visit W3Schools";
var patt1 = /w3schools/i;
var result = str.match(patt1);
document.getElementById("demo").innerHTML=result;
}
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<script>
var patt1=new RegExp("e");
document.write(patt1.test("The best things in life are free"));
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<script>
var patt1=new RegExp("e");
document.write(patt1.exec("The best things in life are free"));
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<p id="demo">Click the button to display the matches.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var str = "The rain in SPAIN stays mainly in the plain";
var res = str.match(/ain/gi);
document.getElementById("demo").innerHTML=res;
}
</script>
</body>
</html>
CSS:

<!DOCTYPE html>
<html>
<head>
<style>
body
{
background-color:#d0e4fe;
}
h1
{
color:orange;
text-align:center;
}
p
{
font-family:"Times New Roman";
font-size:20px;
}
</style>
</head>
<body>
<h1>CSS example!</h1>
<p>This is a paragraph.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
#para1
{
text-align:center;
color:red;
}
</style>
</head>
<body>
<p id="para1">Hello World!</p>
<p>This paragraph is not affected by the style.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
.center
{
text-align:center;
}
</style>
</head>
<body>
<h1 class="center">Center-aligned heading</h1>
<p class="center">Center-aligned paragraph.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
a:link {color:#FF0000;} /* unvisited link */
a:visited {color:#00FF00;} /* visited link */
a:hover {color:#FF00FF;} /* mouse over link */
a:active {color:#0000FF;} /* selected link */
</style>
</head>
<body>
<p><b><a href="default.asp" target="_blank">This is a link</a></b></p>
<p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS
definition in order to be effective.</p>
<p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order
to be effective.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
a:link {color:#FF0000;} /* unvisited link */
a:visited {color:#00FF00;} /* visited link */
a:hover {color:#FF00FF;} /* mouse over link */
a:active {color:#0000FF;} /* selected link */
</style>
</head>
<body>
<p><b><a href="default.asp" target="_blank">This is a link</a></b></p>
<p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS
definition in order to be effective.</p>
<p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order
to be effective.</p>
</body>
</html>
Ad

Recommended

Java me lab2-slides (gui programming)
Java me lab2-slides (gui programming)
haiokman
E by karan chanana
E by karan chanana
karnchanana
Ruby - Design patterns tdc2011
Ruby - Design patterns tdc2011
Rafael Felix da Silva
Aplicacoes dinamicas Rails com Backbone
Aplicacoes dinamicas Rails com Backbone
Rafael Felix da Silva
DataClass Case Study #1: Solving the Duplication Problem
DataClass Case Study #1: Solving the Duplication Problem
Max Guernsey
Two scoopsofdjango common patterns for forms
Two scoopsofdjango common patterns for forms
Shih-yi Wei
Two scoopsofdjango ch16 dealing with the user model
Two scoopsofdjango ch16 dealing with the user model
Shih-yi Wei
Component lifecycle hooks in Angular 2.0
Component lifecycle hooks in Angular 2.0
Eyal Vardi
Two Scoops of Django - Common Patterns for Forms
Two Scoops of Django - Common Patterns for Forms
Vic Yang
Desenvolvendo APIs usando Rails - Guru SC 2012
Desenvolvendo APIs usando Rails - Guru SC 2012
Rafael Felix da Silva
Why study java script
Why study java script
dharmendra kumar
5. hello popescu
5. hello popescu
Razvan Raducanu, PhD
Common Pitfalls Experienced in Java
Common Pitfalls Experienced in Java
Exist
Scala on Your Phone
Scala on Your Phone
Michael Galpin
Validation using javascripts by karan chanana
Validation using javascripts by karan chanana
karan info
Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)
Vidyasagar Mundroy
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Eyal Vardi
Hbase interact with shell
Hbase interact with shell
Shashwat Shriparv
Django quickstart
Django quickstart
Marconi Moreto
Django Admin (Python meeutp)
Django Admin (Python meeutp)
Ines Jelovac
Specs2
Specs2
Piyush Mishra
Reason - introduction to language and its ecosystem | ukasz Strczyski
Reason - introduction to language and its ecosystem | ukasz Strczyski
Grand Parade Poland
Oleksandr Osypenko: 丕仗舒于仍仆仆 仂弍磪仂仄 (Scope) (UA)
Oleksandr Osypenko: 丕仗舒于仍仆仆 仂弍磪仂仄 (Scope) (UA)
Lviv Startup Club
SACRS_Spring Mag 2025 Graceada Article.pdf
SACRS_Spring Mag 2025 Graceada Article.pdf
matthieu81
placement-brochure Great lakes Gurgaon. 2025
placement-brochure Great lakes Gurgaon. 2025
charankumarboom
The Future State Of Work - Actionable Summary for Startup Founders
The Future State Of Work - Actionable Summary for Startup Founders
vikram sood
Company Profile [Popular Group of Industries]
Company Profile [Popular Group of Industries]
irtizashirazi
Integrating Customer Journey Insights into Your Business Process Management S...
Integrating Customer Journey Insights into Your Business Process Management S...
RUPAL AGARWAL
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
pavelborek
How Effective Leadership Drives Success and Accelerates Business Growth by De...
How Effective Leadership Drives Success and Accelerates Business Growth by De...
Devin Doyle

More Related Content

What's hot (14)

Two Scoops of Django - Common Patterns for Forms
Two Scoops of Django - Common Patterns for Forms
Vic Yang
Desenvolvendo APIs usando Rails - Guru SC 2012
Desenvolvendo APIs usando Rails - Guru SC 2012
Rafael Felix da Silva
Why study java script
Why study java script
dharmendra kumar
5. hello popescu
5. hello popescu
Razvan Raducanu, PhD
Common Pitfalls Experienced in Java
Common Pitfalls Experienced in Java
Exist
Scala on Your Phone
Scala on Your Phone
Michael Galpin
Validation using javascripts by karan chanana
Validation using javascripts by karan chanana
karan info
Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)
Vidyasagar Mundroy
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Eyal Vardi
Hbase interact with shell
Hbase interact with shell
Shashwat Shriparv
Django quickstart
Django quickstart
Marconi Moreto
Django Admin (Python meeutp)
Django Admin (Python meeutp)
Ines Jelovac
Specs2
Specs2
Piyush Mishra
Reason - introduction to language and its ecosystem | ukasz Strczyski
Reason - introduction to language and its ecosystem | ukasz Strczyski
Grand Parade Poland
Two Scoops of Django - Common Patterns for Forms
Two Scoops of Django - Common Patterns for Forms
Vic Yang
Desenvolvendo APIs usando Rails - Guru SC 2012
Desenvolvendo APIs usando Rails - Guru SC 2012
Rafael Felix da Silva
Common Pitfalls Experienced in Java
Common Pitfalls Experienced in Java
Exist
Scala on Your Phone
Scala on Your Phone
Michael Galpin
Validation using javascripts by karan chanana
Validation using javascripts by karan chanana
karan info
Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)
Vidyasagar Mundroy
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Eyal Vardi
Hbase interact with shell
Hbase interact with shell
Shashwat Shriparv
Django Admin (Python meeutp)
Django Admin (Python meeutp)
Ines Jelovac
Reason - introduction to language and its ecosystem | ukasz Strczyski
Reason - introduction to language and its ecosystem | ukasz Strczyski
Grand Parade Poland

Recently uploaded (20)

Oleksandr Osypenko: 丕仗舒于仍仆仆 仂弍磪仂仄 (Scope) (UA)
Oleksandr Osypenko: 丕仗舒于仍仆仆 仂弍磪仂仄 (Scope) (UA)
Lviv Startup Club
SACRS_Spring Mag 2025 Graceada Article.pdf
SACRS_Spring Mag 2025 Graceada Article.pdf
matthieu81
placement-brochure Great lakes Gurgaon. 2025
placement-brochure Great lakes Gurgaon. 2025
charankumarboom
The Future State Of Work - Actionable Summary for Startup Founders
The Future State Of Work - Actionable Summary for Startup Founders
vikram sood
Company Profile [Popular Group of Industries]
Company Profile [Popular Group of Industries]
irtizashirazi
Integrating Customer Journey Insights into Your Business Process Management S...
Integrating Customer Journey Insights into Your Business Process Management S...
RUPAL AGARWAL
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
pavelborek
How Effective Leadership Drives Success and Accelerates Business Growth by De...
How Effective Leadership Drives Success and Accelerates Business Growth by De...
Devin Doyle
Axcess Instruments Pitch Deck - Newport Beach Investor Conference 2025
Axcess Instruments Pitch Deck - Newport Beach Investor Conference 2025
Hector Del Castillo, CPM, CPMM
Filter Test machine .pdf
Filter Test machine .pdf
FILTRATION ENGINEERING & CUNSULTANT
Oleksandr Osypenko: 丕仗舒于仍仆仆 舒仂仄 舒 亠舒仄亳 (UA)
Oleksandr Osypenko: 丕仗舒于仍仆仆 舒仂仄 舒 亠舒仄亳 (UA)
Lviv Startup Club
Glow Up Your Desk: The MOOJAY Monitor Stand Experience
Glow Up Your Desk: The MOOJAY Monitor Stand Experience
Topmate
Paul Turovsky - A Key Contributor
Paul Turovsky - A Key Contributor
Paul Turovsky
S4F03 Col11 Conversion of Accounting to SAP S/4HANA
S4F03 Col11 Conversion of Accounting to SAP S/4HANA
Libreria ERP
QuickBooks Keeps Freezing: Causes & Solutions.pptx
QuickBooks Keeps Freezing: Causes & Solutions.pptx
robastwilliams
Best Practices for Creating Clear and Effective BPMN Diagrams
Best Practices for Creating Clear and Effective BPMN Diagrams
RUPAL AGARWAL
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul
AX to Dynamics 365 Finance and Operations in USA.pdf
AX to Dynamics 365 Finance and Operations in USA.pdf
Trident information system
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry.pdf
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry.pdf
Noah Loul
Chapter 1 Introduction to Accountin1.6 plusone class first chapter (1) (1).pptx
Chapter 1 Introduction to Accountin1.6 plusone class first chapter (1) (1).pptx
dilshap23
Oleksandr Osypenko: 丕仗舒于仍仆仆 仂弍磪仂仄 (Scope) (UA)
Oleksandr Osypenko: 丕仗舒于仍仆仆 仂弍磪仂仄 (Scope) (UA)
Lviv Startup Club
SACRS_Spring Mag 2025 Graceada Article.pdf
SACRS_Spring Mag 2025 Graceada Article.pdf
matthieu81
placement-brochure Great lakes Gurgaon. 2025
placement-brochure Great lakes Gurgaon. 2025
charankumarboom
The Future State Of Work - Actionable Summary for Startup Founders
The Future State Of Work - Actionable Summary for Startup Founders
vikram sood
Company Profile [Popular Group of Industries]
Company Profile [Popular Group of Industries]
irtizashirazi
Integrating Customer Journey Insights into Your Business Process Management S...
Integrating Customer Journey Insights into Your Business Process Management S...
RUPAL AGARWAL
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
pavelborek
How Effective Leadership Drives Success and Accelerates Business Growth by De...
How Effective Leadership Drives Success and Accelerates Business Growth by De...
Devin Doyle
Axcess Instruments Pitch Deck - Newport Beach Investor Conference 2025
Axcess Instruments Pitch Deck - Newport Beach Investor Conference 2025
Hector Del Castillo, CPM, CPMM
Oleksandr Osypenko: 丕仗舒于仍仆仆 舒仂仄 舒 亠舒仄亳 (UA)
Oleksandr Osypenko: 丕仗舒于仍仆仆 舒仂仄 舒 亠舒仄亳 (UA)
Lviv Startup Club
Glow Up Your Desk: The MOOJAY Monitor Stand Experience
Glow Up Your Desk: The MOOJAY Monitor Stand Experience
Topmate
Paul Turovsky - A Key Contributor
Paul Turovsky - A Key Contributor
Paul Turovsky
S4F03 Col11 Conversion of Accounting to SAP S/4HANA
S4F03 Col11 Conversion of Accounting to SAP S/4HANA
Libreria ERP
QuickBooks Keeps Freezing: Causes & Solutions.pptx
QuickBooks Keeps Freezing: Causes & Solutions.pptx
robastwilliams
Best Practices for Creating Clear and Effective BPMN Diagrams
Best Practices for Creating Clear and Effective BPMN Diagrams
RUPAL AGARWAL
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul
AX to Dynamics 365 Finance and Operations in USA.pdf
AX to Dynamics 365 Finance and Operations in USA.pdf
Trident information system
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry.pdf
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry.pdf
Noah Loul
Chapter 1 Introduction to Accountin1.6 plusone class first chapter (1) (1).pptx
Chapter 1 Introduction to Accountin1.6 plusone class first chapter (1) (1).pptx
dilshap23
Ad

Validation

  • 1. Validation: <script type="text/javascript"> //Start JavaScript Function function verify() { //for field must take some input if(document.forms["form1"]["name"].value=="") { alert("Please give the name"); return false; } } </script> <form method="POST" action="test3.asp" name="form1" onSubmit="return verify()"> <!-- Creating Table, having 11rows and 2 columns. --> <table border="2" align="center" cellpadding="7"> <!-- Start First Row --> <tr> <!-- Creating First Column --> <td><strong>Name:</strong></td> <!-- Creating Second Columns --> <td> <!-- TextBox --> <input type ="text" name="name"/> <input type="submit" value="Submit" /> </form> <!DOCTYPE html> <html> <body>
  • 2. <p id="demo">Click the button to do a case-insensitive search for "w3schools" in a string.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { var str = "Visit W3Schools"; var patt1 = /w3schools/i; var result = str.match(patt1); document.getElementById("demo").innerHTML=result; } </script> </body> </html>
  • 3. <!DOCTYPE html> <html> <body> <script> var patt1=new RegExp("e"); document.write(patt1.test("The best things in life are free")); </script> </body> </html> <!DOCTYPE html> <html> <body> <script> var patt1=new RegExp("e"); document.write(patt1.exec("The best things in life are free")); </script> </body> </html> <!DOCTYPE html> <html> <body> <p id="demo">Click the button to display the matches.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { var str = "The rain in SPAIN stays mainly in the plain"; var res = str.match(/ain/gi); document.getElementById("demo").innerHTML=res; } </script>
  • 4. </body> </html> CSS: <!DOCTYPE html> <html> <head> <style> body { background-color:#d0e4fe; } h1 { color:orange; text-align:center; } p { font-family:"Times New Roman"; font-size:20px; } </style> </head> <body> <h1>CSS example!</h1> <p>This is a paragraph.</p> </body> </html>
  • 5. <!DOCTYPE html> <html> <head> <style> #para1 { text-align:center; color:red; } </style> </head> <body> <p id="para1">Hello World!</p> <p>This paragraph is not affected by the style.</p> </body> </html> <!DOCTYPE html> <html> <head> <style> .center { text-align:center; } </style> </head> <body> <h1 class="center">Center-aligned heading</h1> <p class="center">Center-aligned paragraph.</p> </body> </html>
  • 6. <!DOCTYPE html> <html> <head> <style> a:link {color:#FF0000;} /* unvisited link */ a:visited {color:#00FF00;} /* visited link */ a:hover {color:#FF00FF;} /* mouse over link */ a:active {color:#0000FF;} /* selected link */ </style> </head> <body> <p><b><a href="default.asp" target="_blank">This is a link</a></b></p> <p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p> <p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p> </body> </html>
  • 7. <!DOCTYPE html> <html> <head> <style> a:link {color:#FF0000;} /* unvisited link */ a:visited {color:#00FF00;} /* visited link */ a:hover {color:#FF00FF;} /* mouse over link */ a:active {color:#0000FF;} /* selected link */ </style> </head> <body> <p><b><a href="default.asp" target="_blank">This is a link</a></b></p> <p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p> <p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p> </body> </html>