By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

Help me out with this JavaScript!

P: n/a
SiN
I have a problem with this JavaScript

<SCRIPT>

var texts = "091c53d492ce7h2";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the password:','');for
(x=1; x<6; x++) {interpret += (texts.indexOf(x)-1);}if
(xorm==interpret){interpret = interpret +
'.php';location.href=interpret;}else{location.href ='hahaha.php';}";

eval(whatisthis);

</SCRIPT>

which value does "interpret" have after the algorithm?
please help me out (i'm a n00b)

Thanks
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
SiN wrote on 30 jun 2003 in comp.lang.javascript:
I have a problem with this JavaScript

<SCRIPT>

var texts = "091c53d492ce7h2";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the password:','');for
(x=1; x<6; x++) {interpret += (texts.indexOf(x)-1);}if
(xorm==interpret){interpret = interpret +
'.php';location.href=interpret;}else{location.href ='hahaha.php';}";

eval(whatisthis);

</SCRIPT>

which value does "interpret" have after the algorithm?
please help me out (i'm a n00b)


........
eval(whatisthis);
alert(interpret)
</SCRIPT>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.