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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:13:26+00:00 2026-06-07T02:13:26+00:00

Using Firebug I have extracted all the links of a web page using: var

  • 0

Using Firebug I have extracted all the links of a web page using:

var links = document.getElementsByTagName("a");
for(var i=0; i<links.length; i++) {
    console.log(links[i].href);
}

now all the links are in the console and they are in the format:

javascript:tenderLog1('abcd.pdf','test','23');

Now I want to pass this string output as a Firebug js command so that all the links get opened automatically.

Is there any function to pass js variable as a Firebug command?

  • 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-07T02:13:31+00:00Added an answer on June 7, 2026 at 2:13 am

    It’s a bit hard to guess what exactly you want to achieve. I guess that you want instead of

    console.log(links[i].href);
    

    to do

    eval(links[i].href.replace("javascript:",""));
    

    ? This would be equivalent to invoking tenderLog1('abcd.pdf','test','23') from Firebug console in the example you’ve provided. The outcome depends on what tenderLog1 functions does of course.

    But perhaps it would be cleaner to see what the function does (window.open?), and provide commands after parsing the parameters with some regular expression.

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

Sidebar

Related Questions

I'm using Firebug and have some statements like: console.log(...); in my page. In IE8
I'm using console.log(variable) and firebug to examine javascript code. Occasionally, I get [object][object] as
I've been using Firebug to debug some javascript I have on one of my
I am using Firebug to debug 3 lines of JS I have written, but
I have Drag/Drop functionality in my page embedded using YAHOO.js which is initalized at
Using Ruby on Rails 3, I have a page with a list of comments
Does anyone have a snippet to load jquery onto any page from firebug? I
If you're using Firebug (Firefox) and you type in javascript in the Console command
Go to this page and look at any paragraph's text font size using Firebug.
I often inspect sites using firebug and have noticed quite a range of complexity

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.