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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:11:53+00:00 2026-06-09T19:11:53+00:00

I am new to AJAX, I want to have a javascript that will make

  • 0

I am new to AJAX,

I want to have a javascript that will make all the link(include webpage,internal link, external link) load in a lightbox when clicked. Just like Facebook, when you click the photo, it will give you a frame , without redirect you to the photo page.

Overall, I want my user to click on ANY link of my website do not redirect to a new page which need to refresh the whole page.
I want the link to be load in a frame on demand, also know as AJAX right?

Actually I just want to know this technique is called as what?? Any google search term ?? searching queries??

Any recommend article or tutorial to do 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-06-09T19:11:55+00:00Added an answer on June 9, 2026 at 7:11 pm

    AJAX: Asynchronous JavaScript and XML. Your example isn’t AJAX, but rather it’s using JavaScript to do event binding that causes actions to take place in response to events made by the user in the browser.

    You could use jQuery to bind an event to all the links of a certain type on a page. The exact implementation will depend on your HTML markup.

    If, for example, you have several images wrapped in link tags:

    <a href="image1.jpg" class="image_link"><img src="image1.jpg" /></a>
    <a href="image2.jpg" class="image_link"><img src="image2.jpg" /></a>
    

    You could have jQuery similar to the following (be sure to load jQuery prior to this in the page):

    <script>
    $('.image_link').click(function(event) {
        event.preventDefault(); // stops it from doing normal link action
    
        // and then down here you'd need JS for your lightbox library
    });
    </script>
    

    Smashing Magazine has an article that might help you: Modal Windows in Modern Web Design.

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

Sidebar

Related Questions

Is it possible to have a link/button that will execute an AJAX/Jquery function to
I currently have created a pagination JavaScript class that will automatically paginate comments when
I have an index.php file that loads other php files via this javascript/ajax code:
I have two jQuery datepickers that once changed, will trigger some ajax to grab
I am very new to ajax concept,I want to submit a form without refresh
I want to use the new combobox control of the Ajax control Toolkit. But
I am familier with jQuery,Ajax and JSP Servlets but new to Struts2.I want to
There is currently this Prototype code that does a PUT: new Ajax.Request(someUrl, { method:
I'm new to AJAX and PHP but I know that PHP is a server-side
Hey there, new to AJAX, JS.. Im trying to add to a Javascript/Ajax search

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.