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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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