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.

How do I open a link in a Parent Window?

Featured Replies

Hi,

 

I'm using Javascript to open up a pop-up window (Not an Ad) when a user clicks a link. Now when a user clicks submit within the pop-up I want it to process but open a new tab/window in the parent.

 

How can this be done please?

other than the obvious bits that this is possible the worst way to do anything, and it wont work in many browsers...

 

there are plenty of tutorials out there, try http://www.javascriptkit.com - thats right im putting the responsibility on someone elese shoulders!

  • Author

Thank you.

 

All I wanted was when a user clicks a link, it opens a confirmation window that when the link is pressed it returns to the window it came from, is this really bad practice?

 

If so then I will have to re-think.

you could do it with an in-window link, such as by showin an absolutely positioned div.

I second what the penguin said.

 

Make everything work within the same page.

Then, if you want to enhance the user experience and let the user perform tasks, such as logging in, or answering a question; use some AJAX override the original behaviour.

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.