pafruu Posted January 18, 2007 Share Posted January 18, 2007 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 More sharing options...
pulpfiction Posted January 18, 2007 Share Posted January 18, 2007 Try giving "yes | no | 0 | 1" for the optional parameters...var winpops=window.open(popurl,"Task","width=400px,height=400px,toolbar=no,location=yes,status=no,scrollbars=yes,menubar=no,resizable=no");http://msdn.microsoft.com/library/default....hods/open_0.asp Link to comment Share on other sites More sharing options...
LittleSam Posted January 19, 2007 Share Posted January 19, 2007 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 More sharing options...
MrAdam Posted January 20, 2007 Share Posted January 20, 2007 EDIT: i thought you'd all missed """ .. nevermind ! haha Link to comment Share on other sites More sharing options...
pafruu Posted January 22, 2007 Author Share Posted January 22, 2007 it works! thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now