Forum Moderators: open
I know very little about JavaScript. I'm in the process of making websites accessible and one website has a major problem. Someone wrote this code (no one now knows who, it was a while ago) to keep one url in the address bar while the pages are accessed from a different url. This was done because my organization owns the arena and runs the site but sold the name rights. Now when the pages are tested for accessibility, they fail because this script creates frames and displays the page as:
<html>
<head>
<title>Arena Name</title>
</head>
<frameset rows="100%", *" border="0" frameborder="0">
<frame src="http://www.example.com/arena/index.html" name="Example.com">
</frameset>
</html>
This is totally generated by the script and I don't know how. What should I do? How do I fix this? I need to have a noframes tag in there, but I dont' see where the code is generated. Here is the javascript in the head of the page:
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1" type="text/javascript"> javascript_version = 1.1;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" type="application/javascript">
<!--
var newwin;
function launchwin(winurl,winname,winfeatures)
{
//This launches a new window and then
//focuses it if window.focus() is supported.
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',250);
}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</SCRIPT>
Thank you in advance for you help.
[edited by: pageoneresults at 4:14 pm (utc) on May 21, 2008]
[edit reason] Removed URI References and Specifics - Please Refer to TOS [/edit]