Jump to content

Javascript errors


duncan_cowan

Recommended Posts

hi i recently started using the script "prototype window" from http://prototype-window.xilinus.com/ the window is working fine but when i try to include the javascript commands, such as minimize or close, in the script it comes up with an error " 'win' is undefined " the place where i run the command is a register form which is accessed from the login form and both are in prototype windows here is the code:

<html><head><script type="text/javascript" src="http://www.worldwarsix.com/protected/prototype_win/javascript/prototype.js"> </script><script type="text/javascript" src="http://www.worldwarsix.com/protected/prototype_win/javascript/window.js"> </script><link href="http://www.worldwarsix.com/protected/prototype_win/themes/ww6.css" rel="stylesheet" type="text/css"/></head><script>win.setSize(400,500);</script><body bgcolor=#000000>...

the code is expected to make the window bigger but this doesnt happen.please could someone help?thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...