WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 How to emulate "execScript" in moz?, nolonely, June 8, 2004

Subject: How to emulate "execScript" in moz? From: nolonely Date: June 8, 2004

I used "eval" at first, but I found the results are different from "execScript"

ex:

<script language="JavaScript">
<!--
function xx() {
 var str = "function a(){ alert(0) };"
 //execScript(str);
 eval(str);
 //setTimeout(str,0);
};
xx();
//-->
</script>
<script language="JavaScript" for=document event=onclick>
<!--
new a();
//-->
</script>




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX