Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

javascript popup

Featured Replies

i have a nice little Javascript popup box which i decided to put a contact form into for my new client, as i thought it would be easier than creating a contact page as the contact info is quite minimal.

 

The popup opens with the form and info correctly, but when i click send; the popup closes, and i have to click the contact link again to see the confirmation message. So bascially, what i want is the form action to redirect you back to the popup window rather than the main page. i have tried action='#dialog' which is the id the contact button calls to execute the popup function, but that hasn't worked.

I know there is a javascript click function which basically clicks the button for you, but i dont know if you can initiate this on submission.

 

thanks

I have suffered a similar problem with a Javascript modal box script, the work around I had to use was having the form submit as normal and then refresh with a javascript call that generated a new modal window with the desire output however this was a feature already supported by the script (JQuery Lightbox Evolution on codecanyon.net).

 

I guess another solution would be to use an AJAX event to prevent the form from submitting in the first place however my knowledge of AJAX is not sufficient enough to provide much insight into this.

  • Author

hmmm, im still very stuck with this......i just need the contact form to submit, but for the popup to remain visible and not close so you dont have to click contact again to see the confirmation message...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.