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 7564981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:01:57+00:00 2026-05-30T14:01:57+00:00

This is the codes that i’ve have written, i’m new to javascript so there’s

  • 0

This is the codes that i’ve have written, i’m new to javascript so there’s probably some easy mistakes and hopefully someone know how to fix it because at the moment the “alert” pops up even if you clicked the iframe. Feel free to ask if you want more info about code or what to know anything:)

<script language="javascript">
var value = false;
function openlink()
{
alert('yo');
}
function getIt()
{
if(value == true)
  window.open('http://stackoverflow.com/','_self');

if(value == false)
  alert("...");
}
</script>

<iframe onclick="javascript:value=true;" src="..." scrolling="no" frameborder="0"       style="border:none; overflow:hidden; width:350px; height:35px;" allowTransparency="true">  </iframe>
  • 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-30T14:01:59+00:00Added an answer on May 30, 2026 at 2:01 pm

    First of all you should never keep someone from browsing your site because some people like me don’t have a FaceBook, and therefor can’t LIKE your site. This is also really really poor SEO.

    So, instead you can do this:

    -User enters site first time
    -user clicks a link
    -set pop-up cookie = true & || set browser storage pop-up cookie = true
    -pop-up with request to like the site
    -user likes or doesn’t like the pop-up/site
    -close box, forwards user along the link

    -User enters with cookie & || browser storage set
    – use link normally

    Or, at the end of the day, you could just use the FB API – But again… you don’t want them to not be able to continue to use your site if they haven’t liked it.
    -Get FB UserID
    -Check FB API for if UserID has LIKE “myurl.com”

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

Sidebar

Related Questions

I have some C# code that generates google maps. This codes looks at all
I have some large, mostly procedural codes that need to be well documented. This
I have this code that fetches some text from a page using BeautifulSoup soup=
I have this code that saves a pdf file. FileStream fs = new FileStream(SaveLocation,
I have a database that has two tables, these tables look like this codes
I know that most CSS codes go under app/assets/stylesheets, but I have some snippets
i have this set of html codes that i want to append another input=text
In a jLabel component, say I have this codes, JLabel jLabel = new JLabel();
I am new to C.This are the files and codes that I am working
i have another problem this time, i'm fetching json codes that will be used

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.