Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6599893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:33:02+00:00 2026-05-25T18:33:02+00:00

I have an iframe of a website let name it foo.com what happen is

  • 0

I have an iframe of a website let name it foo.com what happen is that if the visitors click on the iframe on my website what happen now is that it will right away open a new window

The iframe is a video embed….

So I just want to find out would it be possible if I want to have an option like a popup window alert to tell the visitors by clicking this it will open a new page and if they click confirm will open new window direct to foo.com home page but if click on cancel then it will just stay in the same page [my page]

Just want to know if this is possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:33:03+00:00Added an answer on May 25, 2026 at 6:33 pm

    I not sure if the following will help.

    Try:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Untitled</title>
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!--
    function gosomewhere(){
    var yes = confirm("Would you like to go to this webpage?");
    location.replace("http://www.foo.com");
    }
    //-->
    </SCRIPT>
    </head>
    
    <body>
    <a href="#" onclick="javascript:gosomewhere();">Click Me</a>
    
    </body>
    </html>
    

    Let me know if it is ok

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website, that uses an iframe. The iframe itself is the content
If I have an iframe loading a website from a different server, like bing.com,
So I have a website that we'll call www.main.com and inside of that I
I have a registration plugin embeded via an iframe on my website, The registration
I've used this code to have a like btn on my site: <iframe src=http://www.facebook.com/plugins/like.php?href=URL_OF_YOUR_WEBSITE&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80&amp
I have an iframe that looks like this: <iframe id=iframe2 ...> #document <html>...</html> </iframe>
I have this iFrame in my parent window... <iFrame src=http://theirdomain.com id=Post_iFrame></iFrame> Then I have
I have an iframe on my domain that I would like to get the
Is it legal to have an IFrame on a website which inside has an
Possible Duplicate: Permission Denied IE iFrame I have an iframe in b.com which attempts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.