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

  • Home
  • SEARCH
  • 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 8905369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:22:40+00:00 2026-06-15T02:22:40+00:00

A javascript function must search the special links (copyright urls) in a web page

  • 0

A javascript function must search the special links (copyright urls) in a web page (html body).

If it doesn’t find the special urls, then must give an alert.

Example of JavaScript file:

if () {

//If function find the copyright links, then null - don't make anything
}
else
//If function doesn't find copyright links, then give an alert
alert("Please protect original copyright links.")

Example of html page:

<html>
<head>
<script type='text/javascript' src='http:// ... file.js'></script>
</head>

<body>

  <!-- Start Copyrigt Area -->
  <div id="footer">
    <a href="http://example1.com">example1.com</a>
    <a href="http://example2.com">example2.com</a>
  </div>
  <!-- End Copyrigt Area -->

</body>
</html>

WHY?

I made some themes for special blog community site. Sometimes, our
theme users remove or change our copyright links in the footer area.

The blog community site doesn’t support any dynamic content like php,
we can use only html and some special content tags in a one page.

On the other side, this site doesn’t allow JS hosting, etc. So, JS
files provided by third party hosting providers.

I don’t want encrypt the code. So I think we check the links with a
JavaScript function. If our links removed or changed, then users must
get an alert.

Maybe, some theme users find these javascript function and removes
them and re-host the codes. But I think most of them will can not
anything.

  • 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-06-15T02:22:41+00:00Added an answer on June 15, 2026 at 2:22 am

    It depends on how you write your html. Assuming the footer element is always there:

    if (document.getElementById('footer').childNodes.length == 0) {
    
    //If function find the copyright links, then null - don't make anything
    }
    else
    //If function doesn't find copyright links, then give an alert
    alert("Please protect original copyright links.")
    

    but remember, this just counts what you put in there.

    If your footer is absent if you did not put copyrights in, then see peehaa’s comment.

    Should be good to note, however, that it looks like you’re just referencing links in the copyright area. Like saying – I understand this measure does nothing in the way of security, but in case you care, here are links to the rights owners. If this is true, then goody. Here you go. If you actually want security in place to copyright the content on a page, this will not protect anything.

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

Sidebar

Related Questions

A javascript function must search the special links (copyright urls) in a html web
I am calling a Javascript function in my html page from a Flash movie
My javascript function looks like this - function updateSuccess(aEle) { //Here aEle doesn't have
I've a great problem. I must pass a variable of a javascript function into
The javascript: function validateForm() { var x=document.forms[newsletter][agree].value; if (newsletter.agree.checked != 1) { alert(Checkbox must
I have a form that must execute a javascript function on submit, the function
Every now and then some JavaScript function I'm working on would just quit quietly,
I must have a return value from javascript function. Is there a way to
I have a JavaScript function that handles mouse button events. It must be able
This javascript function takes JSON and formats it to XML. The data is a

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.