gigo1985
05-17-2012, 01:46 PM
hi everybody..
i have this simple code:
<html>
<head>
<script language="javascript" type="text/javascript">
document.write("<input type='button' value='push' onclick='hi()'/>");
function hi() {
alert("hi");
document.write("<input type='button' value='enter' onclick='javascript: bye()'/>");
}
function bye() {
alert("bye");
}
</script>
</head>
<body>
</body>
</html>
if i try to run it on chrom its works well..
but on IE or FireFox its not define the bye() function..
whats the reason?! and how i can solve it?..
thanks very much..:confused::confused::confused:
i have this simple code:
<html>
<head>
<script language="javascript" type="text/javascript">
document.write("<input type='button' value='push' onclick='hi()'/>");
function hi() {
alert("hi");
document.write("<input type='button' value='enter' onclick='javascript: bye()'/>");
}
function bye() {
alert("bye");
}
</script>
</head>
<body>
</body>
</html>
if i try to run it on chrom its works well..
but on IE or FireFox its not define the bye() function..
whats the reason?! and how i can solve it?..
thanks very much..:confused::confused::confused: