re: HTML question: sizing and positioning secondary/child windows?

Subject: re: HTML question: sizing and positioning secondary/child windows?
From: Sean Hower <hokumhome -at- freehomepage -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Mon, 16 Aug 2004 07:46:02 -0700 (PDT)




------------------------------
Geoff Hart asks:
But can I tell the browser where to position the new window, and how large the widow should be without invoking Javascript? A CSS solution would also be possible, I suppose, but again, I'm trying for maximum simplicity and maximum browser compatibility. If either Javascript or CSS is the best or only recommendation, then I'll give them a try.
------------------------------

You can't do this with CSS (at least not that I've seen) or with href attributes, and so JavaScript (or some other scripting) is the only way to go. But the script is simple enough that it should work in most browsers. The only real issue is whether a user has scripting turned off.

Here's what you need:
http://www.yourhtmlsource.com/javascript/popupwindows.html
http://www.alistapart.com/articles/popuplinks/


Read the first one for the easy way to do it (that's how I do it on my own Web site). Read the second one to learn about the accessibility problems about doing it the easy way and how to do it a different way (will be updating my own Web site after having read that one). The second one is more technical and uses a lot more code, but according to the author it will make every nice and accessible, and therefore work on the widest range of browsers.


If these aren't helpful, try a search on "popup window from href"


********************************************
Sean Hower - tech writer
http://hokum.freehomepage.com


_____________________________________________________________
Create your own web site for FREE at http://www.freehomepage.com

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ROBOHELP X5: Featuring Word 2003 support, Content Management, Multi-Author
support, PDF and XML support and much more!
TRY IT TODAY at http://www.macromedia.com/go/techwrl

WEBWORKS FINALDRAFT: New! Document review system for Word and FrameMaker
authors. Automatic browser-based drafts with unlimited reviewers. Full
online discussions -- no Web server needed! http://www.webworks.com/techwr-l

---
You are currently subscribed to techwr-l as:
archiver -at- techwr-l -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



Previous by Author: Re: Top Ten Things You'd Like To Tell Engineers
Next by Author: re: HTML question: sizing and positioning secondary/child windows?
Previous by Thread: HTML question: sizing and positioning secondary/child windows?
Next by Thread: re: HTML question: sizing and positioning secondary/child windows?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads