homepage Welcome to WebmasterWorld Guest from 54.196.201.253
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Pop up Window
David




msg:616415
 8:22 pm on Dec 9, 2000 (gmt 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

 

tedster




msg:616416
 10:59 pm on Dec 9, 2000 (gmt 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?

tedster




msg:616417
 12:12 am on Dec 10, 2000 (gmt 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')"

David




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

Thats it,works perfect! Thanks so much for the help. I should have seen that (still learning)
David

tedster




msg:616419
 2:08 am on Dec 11, 2000 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved