Jump to content

popup window reloading page it's launched from


ESeufert

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.