Sunday, September 12, 2010

Following code will not work in Mozilla..However work in IE Passing "div_1" element as a parameter is not compliance with W3C compliance. Need to analyze later

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script type="text/javascript">
function showLoginPopUp(curEl,sd) {
alert("hi");
}
</script>
<a id="lgn" onclick="showLoginPopUp(this,div_1);return false;" href="#" >Login</a>
<div id="div_1"></div>

No comments: