Click here to Skip to main content
15,885,909 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an image tag. I need to show the image larger in the middle of the screen like popup in javascript when click on the image.
Please help me.I will highly appreciate.
Posted
Updated 25-May-15 18:18pm
v2

1 solution

The problem is that you probably doing it all fully on the client side.

I would advise to use HTML5 Canvas element. Please see this minimal manual: http://www.html5canvastutorials.com/tutorials/html5-canvas-image-crop[^].

Your solution will require a lot more, but handling the images is the key. Explaining all the aspects of such behavior would require too much time and space to fit this Quick Questions and Answers forum format.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900