madu
04-29-2010, 07:21 PM
Hello all,
i want to know how the embed javascript in if-else function,
i have tried. but its not working....
what is the wrong with this code ???????????????????????????????????????
<html>
<head>
<!--[ if lte IE ]>
<script type="text/javascript">
<!--
function show_alert()
{
alert("This Is Internet Explorer");
}
//-->
</script>
<!-- [Else]>
// embed java script file
<script src="test.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function show_alert()
{
alert("This Is Not Internet Explorer");
}
//-->
</script>
<![endif]-->
</head>
<body>
</body>
</html>
i want to know how the embed javascript in if-else function,
i have tried. but its not working....
what is the wrong with this code ???????????????????????????????????????
<html>
<head>
<!--[ if lte IE ]>
<script type="text/javascript">
<!--
function show_alert()
{
alert("This Is Internet Explorer");
}
//-->
</script>
<!-- [Else]>
// embed java script file
<script src="test.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function show_alert()
{
alert("This Is Not Internet Explorer");
}
//-->
</script>
<![endif]-->
</head>
<body>
</body>
</html>