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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:26:53+00:00 2026-05-23T14:26:53+00:00

Trying to select the following link in html: <a href=/node/1742957/nodequeue>Nodequeue</a> with this Javascript: jQuery(a:contains(‘Nodequeue’)).trigger(click);

  • 0

Trying to select the following link in html:

<a href="/node/1742957/nodequeue">Nodequeue</a>

with this Javascript:

jQuery("a:contains('Nodequeue')").trigger("click");

And I am receiving this error message:

Javascript console (:1): Unsafe JavaScript attempt to access frame with URL http://cdn.nprove.com/cpma/p/1/2/e/b/12ebf3bc368ry3ra.html?npuid=1310010225&rurl=&id=cpma-2n7eypbvio581300288437193&null=&r=366424962878227 from frame with URL http://www.benzinga.com/analyst-ratings/analyst-color/11/07/1742957/the-beef-stops-here. Domains, protocols and ports must match.

Any idea what might cause this?

  • 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-23T14:26:54+00:00Added an answer on May 23, 2026 at 2:26 pm

    I created a
    JSFiddle of your code which you can look at and notice that in the console your error doesn’t come up in Chrome 12 or FireFox 5. I’m not sure what version of jQuery you are using that is causing that or your DOM situation that may be triggering that error, however, try this potential fix:

    (function(window, $) {
    
      $.fn.triggerAnchor = function() {
        return this.each(function(e) {
          var href = $(this).attr('href');
          window.location.href = href;
    
          return false;
        });
      };
    
    })(this, this.jQuery);
    

    Then use with:

    $("a:contains('Nodequeue')").triggerAnchor();
    

    I don’t think jQuery triggers anchors, and it certaintly doesn’t trigger native click events. This is the closest thing I can think of to emulate that behavior.

    You can see it ‘working’ here

    Explanation of the code:

    The code is simply a jQuery plugin that looks at the href attribute of anchor and sets the window location to that value. I wrote in the typical pattern of a wrapped closure to localize references to window and jQuery. I’m allowing you to call this on multiple anchors, but I’m assuming the average user would only need to run this once.

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

Sidebar

Related Questions

In trying to select elements that have any attributes, the following throws a jQuery
I'm trying to select the link from the onclick attribute in the following portion
I am trying to select the following query from my table: SELECT ARTICLE_NO, USERNAME,
I'm trying to select all text in-between following a specific pattern: Sample Text: by
I'm trying to select data from a table defined similar to the following :
I'm trying out the following query: SELECT A,B,C FROM table WHERE field LIKE 'query%'
I'm trying to do the following: from c in db.GetAllContactsQuery() select new { ID=
I am trying to convert the following SQL into a LINQ expression SELECT COUNT(ID)
I'm trying to convert the following list into a select list so it can
I'm trying to do the following: I have a set of images and select

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.