473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

HREF question...

Mel
can i specify width and height of the popup window in my href ?

something like:
<a href=xxxx width=200 height=200 target=AAA>YYYYYYYYYYY</a>

OBVIOUSLY that did not work !

thanks for your help

Mel
Jul 20 '05 #1
3 1664
In article <c0**********@s0b1a68.ssa.gov>, "Mel" <me*@redolive.com>
wrote:
can i specify width and height of the popup window in my href ?
Popup window?
something like:
<a href=xxxx width=200 height=200 target=AAA>YYYYYYYYYYY</a>
It is a link, more precisely an 'anchor'. If it's intention was to spawn
windows, one would have called it <window> a certain point in time.
Following the link does not necessarily result in a new window, despite
your intentions as the author. Don't forget, I, the visitor, have a will
of my own and I can decide to open it in a new tab as I often do.
However, what I now can no longer do, due to your affection with
deciding for your visitors how to surf the web, resulting in the
addition of the target attribute, is deciding to open the link _in the
same window_ that the document is in. You take away that choice.
OBVIOUSLY that did not work !


More than you may realize is not working. That needs to change before
your code does.

<http://www.useit.com/alertbox/990530.html>
<http://diveintoaccessibility.org/day_16_not_opening_new_windows.html>
<http://www.zenhaiku.com/archives/ope...indow_it_depen
ds.html>
<http://www.mentalized.net/journal/2003/03/17/a_targetbad_idea/index.asp>

Opening new windows of a certain size, regardless of whether you should,
happens by javascript. For example:

<a href="foo.html"
onclick="window.open(this.href,'pop','width=200,he ight=200'); return
false;">foo</a>

--
Kris
<kr*******@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
Jul 20 '05 #2
On Tue, 10 Feb 2004 12:22:08 -0500, "Mel" <me*@redolive.com> wrote:
can i specify width and height of the popup window in my href ?

something like:
<a href=xxxx width=200 height=200 target=AAA>YYYYYYYYYYY</a>

OBVIOUSLY that did not work !


Most people around these parts dislike pop-ups - see answer from Kris. I
wouldn't go quite that far myself, but I would ask whether you have a
good reason for thinking you need a pop-up - i.e. why does the reader
need to see both the original window and the new window at the same
time? If he doesn't, then you don't need a pop-up.

If you think you do have a good reason, I have a working Javascript
example at http://www.xs4all.nl/~sbpoley/abiog/abiogen.htm which
degrades gracefully for readers without Javascript.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #3
Kris wrote:
However, what I now can no longer do, due to your affection with
deciding for your visitors how to surf the web, resulting in the
addition of the target attribute, is deciding to open the link _in the
same window_ that the document is in. You take away that choice.


Mozilla has a (fairly obscure, hidden) preference setting that disables
the opening of new windows via target attributes. It's been kept
obscure and hidden because it can have confusing, unpredictable effects
in sites that use odd combinations of JavaScript and targets. (I have
that set myself, and sometimes find that sites do strange things like
spawn extra windows and leave them blank while opening something in the
main browser window that really should have been in the extra window.
Entertainment sites seem to be common offenders of that variety.)

--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sorby | last post by:
Hi I've been coding in PHP for a little while now and was starting to feel pretty confident but then realise I need to understand regular expressions to solve a particular problem I've got ......
0
by: Robert Mark Bram | last post by:
Hi All! I have a menu system on my asp pages that use tables with a bunch of cells like this: <td class="menuHeader"><a href="../default.asp">Home</a></td> <td class="menuEntry"><a...
4
by: Johnny | last post by:
I have a page with a button that has the following link: <a href="/somelink?org.apache.struts.taglib.html.TOKEN=ef9f9f5973be37ffe39c60227f402770#" onclick="javascript:go( event, 'myForm');return...
2
by: Don Clark | last post by:
Hello; Admittedly, I'm very new to HTML, and this is my first post to any newsgroup, so please go easy. I was looking at the html code for an email I received and noted an href statement that...
9
by: Kreso | last post by:
i'm passing the asp parameters using the url current page is files.asp and I'm using window.location.href=files.asp?action=deletefile to pass the action to the serverside My code never got...
2
by: yogesh.bhardwaj | last post by:
Hello all I am trying to modify the link URL when a user clicks on the link. Following is the code: <a onClick="document.location.href=modifyURL(this.href);" href="SOME_DYNAMIC_URL"...
6
by: snacktime | last post by:
I've searched and searched and have not found a solution to suppress the margin on form or href tags so that there is no space before or after the tag. The only way I have found to do this is to...
53
by: usenet | last post by:
See <ul> <li><a name="link1" onClick="alert(this.name);return false;" href="#">Link1</a></li> <li><a name="link2" href="javascript:alert(this);">Link2</a></li> <li>Item 3</li> </ul> ...
6
by: kelvlam | last post by:
Hello, I'm a new begininer with JavaScript. I'm trying to figure out which is the best approach, and to understand the differences between them. I have a <Aelement that's suppose to either...
19
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have <a href="javascript:somefunction()"what ... ?...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.