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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:25:10+00:00 2026-06-15T01:25:10+00:00

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

  • 0

A javascript function must search the special links (copyright urls) in a html web page.
If it doesn’t find the special urls, then must give an alert. “Div ID check” and “Div length check” are good ways, but is it possible to directly control the links (urls)?

I am already aware that this does not protect the links.

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>

A far as why I am doing this is concerned, here are my reasons:

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-15T01:25:11+00:00Added an answer on June 15, 2026 at 1:25 am

    Based on your description, I think you should check both the link and it’s text. Suppose you’re using JQuery:

    ​$().ready(function(){
        var copyrightLinks = $("a[href='your copyright url']");
        //check link and inner text
        if(copyrightLinks .length > 0 && copyrightLinks.text().indexOf("your copyright text")>=0){
            console.debug("has copy right");
        }else{
            alert("Please protect original copyright links.");
        }
    });​
    
    • 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 web page
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 use the following Javascript function.It will not work.It will give the Undefined Error
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

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.