Jump to content

Javascript Popup not working in IE


pafruu

Recommended Posts

Hi,need help with javascript where I created a popup window that comes up after you clicked a link. It works perfectly in, firefox, opera, safari but IE... it doesn't anybody know why?heres the code: <script type="text/javascript">function openpopup(popurl){var winpops=window.open(popurl,"Terms and Conditions","width=400px,height=200px,toolbar,location,status,scrollbars,menubar,resizable")}</script>and in body:<a href="java script:openpopup('termsandconditions.html');">Promotion Terms and Condition</a>

Link to comment
Share on other sites

Your problem is in your window.open statement. The second argument, the name of the new window, shouldn't have spaces.Try: "Terms_and_Conditions"

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...