SlideShare a Scribd company logo
JavaScript Errors - Throw and Try

<!DOCTYPE html>

<html>

<head>

<script>

var txt="";

function message()

{

try

    {

    adddlert("Welcome guest!");

    }

catch(err)

    {

    txt="There was an error on this page.nn";

    txt+="Error description: " + err.message + "nn";

    txt+="Click OK to continue.nn";

    alert(txt);

    }

}

</script>

</head>



<body>
<input type="button" value="View message" onclick="message()" />

</body>



</html>

More Related Content

Viewers also liked

Teoría empresarial
Teoría empresarialTeoría empresarial
Teoría empresarial
Javier Siso
 
Aula 03 filosofia clássicos gregos - ii
Aula 03   filosofia clássicos gregos - iiAula 03   filosofia clássicos gregos - ii
Aula 03 filosofia clássicos gregos - iiElizeu Nascimento Silva
 
Karan chanana
Karan chananaKaran chanana
Karan chanana
karan chanana
 
Experiencia austria urbanismo para mujeres pensado por mujeres
Experiencia austria urbanismo para mujeres pensado por mujeresExperiencia austria urbanismo para mujeres pensado por mujeres
Experiencia austria urbanismo para mujeres pensado por mujeres
Filomena Ana Ingravallo Cardeño
 
Johar Samachar January 2008 issue
Johar Samachar January 2008 issueJohar Samachar January 2008 issue
Johar Samachar January 2008 issue
krautela
 
130210125082_Prod_B_II_sem_2014
130210125082_Prod_B_II_sem_2014130210125082_Prod_B_II_sem_2014
130210125082_Prod_B_II_sem_2014deeppatel8128
 
Aula 02 televisão, redes sociais e dispositivos móveis
Aula 02 televisão, redes sociais e dispositivos móveisAula 02 televisão, redes sociais e dispositivos móveis
Aula 02 televisão, redes sociais e dispositivos móveisGêsa Cavalcanti
 
Fórum re:pensar SJM 2020 - Desafios para uma Cidade A++, José Basílio Simões,...
Fórum re:pensar SJM 2020 - Desafios para uma Cidade A++, José Basílio Simões,...Fórum re:pensar SJM 2020 - Desafios para uma Cidade A++, José Basílio Simões,...
Fórum re:pensar SJM 2020 - Desafios para uma Cidade A++, José Basílio Simões,...
ForumRepensarSJM2020
 
Carta trattoria florida
Carta   trattoria floridaCarta   trattoria florida
Carta trattoria floridaandjorde
 
Buat 3 tabel yang saling berkaitan dg kardinalitas n n
Buat 3 tabel yang saling berkaitan dg kardinalitas n nBuat 3 tabel yang saling berkaitan dg kardinalitas n n
Buat 3 tabel yang saling berkaitan dg kardinalitas n nLenny Al Irsyad
 
Prueba_KIARA
Prueba_KIARAPrueba_KIARA
Prueba_KIARA
kbellezae
 
Diari D’Abord 1
Diari D’Abord 1Diari D’Abord 1
Diari D’Abord 1
ecthalion
 
Pra que filosofar
Pra que filosofarPra que filosofar
Pra que filosofarOris Lima
 
The Adams Family
The Adams FamilyThe Adams Family
The Adams Family
agoldfar
 
Sector comercial
Sector comercialSector comercial
Sector comercialLEYDIANAC
 

Viewers also liked (20)

Teoría empresarial
Teoría empresarialTeoría empresarial
Teoría empresarial
 
Aula 03 filosofia clássicos gregos - ii
Aula 03   filosofia clássicos gregos - iiAula 03   filosofia clássicos gregos - ii
Aula 03 filosofia clássicos gregos - ii
 
Karan chanana
Karan chananaKaran chanana
Karan chanana
 
P djuin201200012
P djuin201200012P djuin201200012
P djuin201200012
 
Experiencia austria urbanismo para mujeres pensado por mujeres
Experiencia austria urbanismo para mujeres pensado por mujeresExperiencia austria urbanismo para mujeres pensado por mujeres
Experiencia austria urbanismo para mujeres pensado por mujeres
 
Johar Samachar January 2008 issue
Johar Samachar January 2008 issueJohar Samachar January 2008 issue
Johar Samachar January 2008 issue
 
La informatica
La informaticaLa informatica
La informatica
 
130210125082_Prod_B_II_sem_2014
130210125082_Prod_B_II_sem_2014130210125082_Prod_B_II_sem_2014
130210125082_Prod_B_II_sem_2014
 
Aula 02 televisão, redes sociais e dispositivos móveis
Aula 02 televisão, redes sociais e dispositivos móveisAula 02 televisão, redes sociais e dispositivos móveis
Aula 02 televisão, redes sociais e dispositivos móveis
 
Floresamistad
FloresamistadFloresamistad
Floresamistad
 
Fórum re:pensar SJM 2020 - Desafios para uma Cidade A++, José Basílio Simões,...
Fórum re:pensar SJM 2020 - Desafios para uma Cidade A++, José Basílio Simões,...Fórum re:pensar SJM 2020 - Desafios para uma Cidade A++, José Basílio Simões,...
Fórum re:pensar SJM 2020 - Desafios para uma Cidade A++, José Basílio Simões,...
 
Lei 002.2014
Lei 002.2014Lei 002.2014
Lei 002.2014
 
Carta trattoria florida
Carta   trattoria floridaCarta   trattoria florida
Carta trattoria florida
 
Doc1
Doc1Doc1
Doc1
 
Buat 3 tabel yang saling berkaitan dg kardinalitas n n
Buat 3 tabel yang saling berkaitan dg kardinalitas n nBuat 3 tabel yang saling berkaitan dg kardinalitas n n
Buat 3 tabel yang saling berkaitan dg kardinalitas n n
 
Prueba_KIARA
Prueba_KIARAPrueba_KIARA
Prueba_KIARA
 
Diari D’Abord 1
Diari D’Abord 1Diari D’Abord 1
Diari D’Abord 1
 
Pra que filosofar
Pra que filosofarPra que filosofar
Pra que filosofar
 
The Adams Family
The Adams FamilyThe Adams Family
The Adams Family
 
Sector comercial
Sector comercialSector comercial
Sector comercial
 

More from karnchanana

E by karan chanana
E by karan chananaE by karan chanana
E by karan chananakarnchanana
 
Java script while loop by karan chanana
Java script while loop by karan chananaJava script while loop by karan chanana
Java script while loop by karan chananakarnchanana
 
Java script while loop by karan chanana
Java script while loop by karan chananaJava script while loop by karan chanana
Java script while loop by karan chananakarnchanana
 
Java script errors by karan chanana
Java script errors by karan chananaJava script errors by karan chanana
Java script errors by karan chananakarnchanana
 
Add text on image by karan chanana
Add text on image by karan chananaAdd text on image by karan chanana
Add text on image by karan chananakarnchanana
 
Accessing data from a simple post by karan chanana
Accessing data from a simple post by karan chananaAccessing data from a simple post by karan chanana
Accessing data from a simple post by karan chananakarnchanana
 
Adding text to an image by karan chanana
Adding text to an image by karan chananaAdding text to an image by karan chanana
Adding text to an image by karan chananakarnchanana
 
Java script calc by karan chanana
Java script calc by karan chananaJava script calc by karan chanana
Java script calc by karan chananakarnchanana
 

More from karnchanana (9)

E by karan chanana
E by karan chananaE by karan chanana
E by karan chanana
 
Java script while loop by karan chanana
Java script while loop by karan chananaJava script while loop by karan chanana
Java script while loop by karan chanana
 
Java script while loop by karan chanana
Java script while loop by karan chananaJava script while loop by karan chanana
Java script while loop by karan chanana
 
Java script errors by karan chanana
Java script errors by karan chananaJava script errors by karan chanana
Java script errors by karan chanana
 
Add text on image by karan chanana
Add text on image by karan chananaAdd text on image by karan chanana
Add text on image by karan chanana
 
Accessing data from a simple post by karan chanana
Accessing data from a simple post by karan chananaAccessing data from a simple post by karan chanana
Accessing data from a simple post by karan chanana
 
Adding text to an image by karan chanana
Adding text to an image by karan chananaAdding text to an image by karan chanana
Adding text to an image by karan chanana
 
karan chan ana
karan chan anakaran chan ana
karan chan ana
 
Java script calc by karan chanana
Java script calc by karan chananaJava script calc by karan chanana
Java script calc by karan chanana
 

Recently uploaded

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 

Recently uploaded (20)

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 

Java script errors by karan chanana

  • 1. JavaScript Errors - Throw and Try <!DOCTYPE html> <html> <head> <script> var txt=""; function message() { try { adddlert("Welcome guest!"); } catch(err) { txt="There was an error on this page.nn"; txt+="Error description: " + err.message + "nn"; txt+="Click OK to continue.nn"; alert(txt); } } </script> </head> <body>
  • 2. <input type="button" value="View message" onclick="message()" /> </body> </html>