Popup same image when clicked on image button in asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sagarshahir
    New Member
    • Feb 2008
    • 1

    Popup same image when clicked on image button in asp.net

    Hi all

    I m using image buttons for images(thumbnai ls).

    as per my requirement i am assigning images to this image button.

    i want to give a pop up when this image button is clicked containin same image(full size).

    please help me

    thankin in advance

    cheers
  • indianmaestro
    New Member
    • Mar 2008
    • 16

    #2
    <script>
    function changeSize(imag e)
    {
    //var width=images.wi dth;
    //var height=images.h eight;
    imPrev = window.open(ima ge.src, 'imagePreview', 'toolbar=0,scro llbars=0,locati on=0,statusbar= 0,menubar=0,res izable=0,width= 800,height=700, left = 100,top = 100');

    }

    </script>

    -----------------------------------------
    In html write this code for image control

    onclick="return changesize(this );"

    Comment

    Working...