Link to home
Start Free TrialLog in
Avatar of steva
steva

asked on

href="#"

I've been looking over a web site that pops up a modal box when you click a "Read More" link and then dismisses the box when you click "close" at the top of the box.  The way they do this, though, is strange. No jQuery is involved.  The Read More link initiates a reload of the page with a query string that causes PHP to include extra code just before the </body> tag.  This extra markup includes an "overlay" div with width = height = 100%, color = black, opacity = 0.75, and z-index = 100. After the overlay div comes the pop up box with a z-index of 102.

The thing that puzzles me is the way they close the box. "Close" is just a link with href="#".   Somehow, it seems, this has to reload the original version of the page, that doesn't have the overlay div and box div at the bottom, to make the popup go away, but it's not clear how href="#" does  this. My understanding of href="#" is that it just jumps to the top of the page.

Could anyone explain what's going on here?  You can see the page at www.thebarcoderegistry.com.  Just click any of four Read More links.

Thanks for any insight.
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of steva
steva

ASKER

Yes.  I can see now that there's an entire Cody Lindley Thickbox  javascript  module being invoked here that's full of jQuery. Sorry for not taking more time with it initially.   I split the points.