try
   {
   adddlert("Welcome guest!")
   }
catch(err)
   {
   txt="There was an error on this page.\n\n"
   txt+="Error description: " + err.description + "\n\n"
   txt+="Click OK to continue.\n\n"
   alert(txt)
   }
출전 w3c.org
이올린에 북마크하기(0) 이올린에 추천하기(0)
Posted by ananda