JavaScript Reloads Windows

They have: 5 posts

Joined: Mar 2000

I have a main page with graphics when you click a graphic a JS Window opens but the main page gets reset to the top. So if you are five pages download scrolling it take you back to the top when you click a graphics which opens up a new window. Its did not do this in IE 4.0 but it is doing it in IE 5.0. I need to fix this PROBLEM
Thanks for the HElp
-Fifthcore

"Mess with the best die like the rest"

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Instead of using a href="#", I do this:

<a href="#thislink" name="thislink" onClick="openNewWin()">

And I have the function in the head instead of in the link, if that makes a difference to you, you can reverse it as long as you don't have it as the href.

Or you can move the target up to the logical place like a title or heading.

hth,

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 5 posts

Joined: Mar 2000

Thanks for the Help it work great

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.