ESeufert Posted September 15, 2007 Share Posted September 15, 2007 I want to launch a popup window when a user clicks on a form button, but I want the page that contained the form button to remain. So when the user clicks the form button, a window should pop up, they should select some stuff, the window should close itelf, and they should be able to continue navigating on the page that they launched the popup from. For some reason, the initial page is changing when they hit the form button. This is my javascript code: function loadWindow() { window.open("/window.php", toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=180,height=150,left = 550,top = 437); ...and this is how I'm executing it: <form> <input type="button" class="actionButton" value="Click me!" onClick="loadCalendarWindow(); return false;" /> </form> Am I doing something wrong? Quote Link to comment Share on other sites More sharing options...
jbingman Posted September 15, 2007 Share Posted September 15, 2007 I don't think your calling the right function you have loadCalendarWindow() but your function is loadWindow() Quote Link to comment Share on other sites More sharing options...
ESeufert Posted September 15, 2007 Author Share Posted September 15, 2007 that was just a typo -- the function works properly and brings up the window correctly, it just reloads the parent page and for some reason breaks the URL when it does it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.