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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:34:12+00:00 2026-05-26T13:34:12+00:00

$.colorbox({href:login.php}); //this Works (opens login.php) $(this).click(function(){ $.colorbox({href:login.php}); //Doesn’t work (opens parent page after 5

  • 0
$.colorbox({href:"login.php"}); //this Works (opens login.php)

$(this).click(function(){
$.colorbox({href:"login.php"}); //Doesn't work (opens parent page after 5 sec and breaks colorbox)
}

What could be the problem?

  • 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-26T13:34:12+00:00Added an answer on May 26, 2026 at 1:34 pm

    Well, assuming that you copied and pasted the code, you’re missing a paren. You should also call e.preventDefault() to prevent the link?/button? from doing what it’s intended to do.

    $(this).click(function(e){
        //Doesn't work (opens parent page after 5 sec and breaks colorbox)
        $.colorbox({href:"login.php"}); 
    
        //Prevent default so the button?/link? doesn't do what it's intended to do
        e.preventDefault();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<script> $(document).ready(function() { $('#reset_password').live('click', function(e) { parent.$.fn.colorbox.close(); parent.$(document).bind('cbox_closed', function(){ window.location.href = search_message_thankyou.php; }); });
I'm loading colorbox on page load. parent.$.fn.colorbox({href: #inline_example1, overlayClose:false, inline:true,width:'80%',height:'90%', onClosed:function(){} ,onLoad: function() {
<?php if(isset($_SESSION['cnt'])&&($_SESSION['cnt'] == 5) ){ $_SESSION['cnt'] = 0; ?> <script> //$(#fb_login).trigger('click'); //$('#fb_login').click(); $(#fb_login).click(function(){ $(#fb_login).colorbox({width:300px,
I have this: $(a.money).colorbox({href:$(a.money).attr(href)+ div#content}); Which opens an overlay but only of the content
How to change inline colorbox 'href' dynamic like i want when i click on
i want to put the id into the colorbox below this code nom works
Im using colorbox in php page as IFRAME .. colorbox popup always open on
i have a function like this: $(#join).colorbox({ onComplete:function(){ // add code here }, width:530px,
I'm using the colorbox plugin to display messages on my web page. One of
I have a function called Colorbox (jQuery plugin) that takes a number of parameters

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.