I have an html form with an onclick <img src> something like this:
<img src ... ONCLICK="displayPhoto('
This calls a displayPhoto javascript function where the thumbnail is displayed as a large image using javascript's window.open() command.
The above is included in a shopping cart application where many products can be displayed on a single page. If the user has scrolled down the page to any depth, when he/she clicks on the thumbnail, the html page seems to be called and goes back to the top of the page, thus losing the user place on the html page. When the user closes the javascript window, he must again scroll down the html page to resume viewing products at the place he left off prior to clicking on the thumbnail, and this occur each time a new javascript window is opened from a thumbnail.
I'm hoping someone can give me a clue, or a simple javascript command, of how to keep the html page from going back to the top of the page each time the javascript is called.
Regards,
LelandJ
Leland F. Jackson, CPA
Software - Master (TM)
Nothing Runs Like the Fox
<img src ... ONCLICK="displayPhoto('
This calls a displayPhoto javascript function where the thumbnail is displayed as a large image using javascript's window.open() command.
The above is included in a shopping cart application where many products can be displayed on a single page. If the user has scrolled down the page to any depth, when he/she clicks on the thumbnail, the html page seems to be called and goes back to the top of the page, thus losing the user place on the html page. When the user closes the javascript window, he must again scroll down the html page to resume viewing products at the place he left off prior to clicking on the thumbnail, and this occur each time a new javascript window is opened from a thumbnail.
I'm hoping someone can give me a clue, or a simple javascript command, of how to keep the html page from going back to the top of the page each time the javascript is called.
Regards,
LelandJ
Leland F. Jackson, CPA
Software - Master (TM)
Nothing Runs Like the Fox