Welcome to WebmasterWorld Guest from 54.167.83.224

Forum Moderators: incrediBILL

Message Too Old, No Replies

Pop up Window

     
8:22 pm on Dec 9, 2000 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 26, 2000
posts:414
votes: 0


I have a javascript pop up window that I can position size and load with out a problem. My problem is I can't figure out how to keep the parent window from scrolling back to the top. Any help would be appreciated.
Thanks
David
10:59 pm on Dec 9, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


David,

Is this on the site listed in your profile? I couldn't find pop-up windows there on first look. Could you sticky mail me a URL so I can see what you're wrestling with?

12:12 am on Dec 10, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Got your URL in sticky mail. The javascript function "features" and the way you call it is the problem. The beginning of your link code says:

<a href="#" onclick ...

The ="#" part of the code scrolls you back to the top of the page. You can write the link to the popup function without the "onclick" event handler. Just use code something like this:

<a href="javascript:features('mclkben.html#tracker')"
12:22 am on Dec 10, 2000 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 26, 2000
posts:414
votes: 0


Thats it,works perfect! Thanks so much for the help. I should have seen that (still learning)
David
2:08 am on Dec 11, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


>...still learning

I've resigned myself to scheduling study of some kind into my routine for the rest of the time I do this. There's so much to know and it changes so fast -- the idea that colleges offer courses and even degrees in webmastering busts me up.