[web] JavaScript problem

Started by
5 comments, last by Nice Coder 18 years, 10 months ago
My Internet Explorer crashes whenever I get to a <form> tag in &#106avascript. It generally works on sites, but when I run one myself, even if directly copied, it crashes in the f character of form. What could be causing this?
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!
Advertisement
"<form> tag in &#106avascript"

what does that mean? <form> is an html tag, how is JS involved? can you give an example page and a version of IE?

-grumps
If you're writing to the document, double check to make sure you have your quotation marks correctly aligned.
www.aidanwalsh(.net)(.info)
Here is an example, copied from a web site:

<html><body><script language="javascript" type="text/&#106avascript"><form action="navigate.cfm" method="post" onsubmit="return navigateForm(this.form.navigateSelect)">  <select name="navigateSelect" id="navigateSelect" size="1">    <option value="">Choose One</option>    <option value="/">Home</option>    <option value="/products/">Products</option>    <option value="/faq/">FAQ</option>    <option value="/about_us/">About Us</option>    <option value="/contact_us/">Contact Us</option>  </select>  <input type="submit" value="Go" /></form></script></body></html>


It doesn't work on my pc, crashing at line 13, character 1.
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!
Your form somehow ended up inside the script element. As the script element only can contain CDATA your user agent will likely try to interpret the data as &#106avascript.
OK, thanks. Hopefully this sorts out that problem.
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!
A form tag isn't &#106avascript. Any attempts to circumvent this rule will be met with errors.<br><br>From,<br>Nice coder
Click here to patch the mozilla IDN exploit, or click Here then type in Network.enableidn and set its value to false. Restart the browser for the patches to work.

This topic is closed to new replies.

Advertisement