Obviusly I am a novice at JavaScript and I know that one of you knowledgeable JSers will be able to give me a tip without so much as a thought.
I am doing a photo gallery and I would like to launch a window from my parent page with an enlarged picture in it. Incredibly simple, right?
Here’s my code… I know that I must be doing something wrong. If anyone could point out what, I’d be very grateful.
Thanks,
Elizabeth
This is the code for my img and anchor tag:
[CODE]<a href=”#” onclick=”openWin();” title=”Pictures of Boxer Puppies”><img align=”left” style=”” src=”images/foto-file2.gif”></a>
I am referencing my script from my photo gallery page with this code:
[CODE]<script language=”JavaScript” src=”http://www.boxerbonanza.com/bbgeneral.js”>
</script>
And, lastly, this is my function:
[CODE]function openWin() {
puppyWindow = window.open(“http://www.boxerbonanza.com/boxer-puppy-photo-gallery.php”,”Puppy Window”,”width=400,height=500″);
}