I have a JavaScript function, in this function i will write
<script type='text/JavaScript' language='JavaScript'>alert('ha')</script>
But while executing this page it doesn’t work. This is my code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" type="text/javascript">
function asd()
{
document.write("<script language='javascript' type='text/javascript'>alert('asdasd');</" + "script>");
}
</script>
</head>
<body onload="asd();">
<span id="gdfg"></span>
<span>dgdfghfghfghfg</span>
</body>
</html>
What Rafael meant was this
or