{{theTime}}

Search This Blog

Total Pageviews

How to catch Java Script error: Can't find variable

<!DOCTYPE html>
<html>
<body>

<p id="JStrycatch"></p>

<script>
try {
jsalert("Java script error handling msg!");
}
catch(error) {
document.getElementById("JStrycatch").innerHTML = error.message;
}
</script>

</body>
</html>

No comments:

Generate Insert Sql from Select Statement

SELECT 'INSERT INTO ReferenceTable (ID, Name) VALUES (' +        CAST(ID AS NVARCHAR) + ', ''' + Name + ''...