Open Browser Window Behavior

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back