Open Browser Window Behavior

SpaceshipSpaceship
Watch

lars

New Member
Impact
0
I have a thumbnail photo on a page that, when clicked, it opens a new page in a new window, showing an enlarged image.

I use dreamweaver MX and I do this using the Open Browser Window behavior in a set window size.

Anyway, when you click to open the new window, the page containing the thumbnail goes back to the top of the page, and I don't want it to do this.

What is going on here and how do I get this to stop?

Thanks,

Lars
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Does your link have a "#" mark at the end of it? If yes, then that is the reason it goes there...

your html code looks something like this...
HTML:
<a href = "#" onclick="javascript: new window('path to larger image');"><img src='path to image' /></a>
one way around it is to copy what is there on the "onclick" evetn onto the href attribute, as shown below...

HTML:
<a href = "javascript: new window('path to larger image');" ><img src='path to image' /></a>
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back