<html> <head> <SCRIPT language="JavaScript"> <!-- function PopUp(pPage) { window.open(pPage,'popWin','resizable=yes,scrollbars=yes,width=580,height=460,toolbar=no'); } //--> </SCRIPT> </head> <body> <A href="javascriptopUp('images/kheri_abstract_21_large.JPG');"><img src="images/style_five.JPG" alt="" border=0></a> </body> </html>
Try: <A href="" onclick="PopUp('images/kheri_abstract_21_large.JPG'); return false;"> Code (markup): You had a syntax error in your original HTML.
nope! it's not working. I got the coding from this thread and replaced it with my own image but showing error. http://forums.digitalpoint.com/showthread.php?t=2696
Do you think your script should be under comment tags? *forgive me if i sound like a newbie because i am not a JS pro
When you say it's not working, what do you mean? What happens? Have you checked that the variable 'pPage' is a valid URL? Are there any other JavaScript errors on the page?
pop-up window opens up but with no image in it. I guess the problem is with this one: <A href="javascriptopUp('images/kheri_abstract_21_large.JPG');"><img src="images/style_five.JPG" alt="" border=0></a> style_five.JPG (thumbnail image) kheri_abstract_21_large.JPG ( the larger one)
Finally, with the following code, pop-up window showing image but now how to add thumbnail image in place of CLICK HERE. <a href="javascriptpenWin('images/kheri_abstract_21_large.JPG','pop3',720,540);">CLICK HERE</a> style_five.JPG (thumbnail image) kheri_abstract_21_large.JPG ( the larger one)