HighDots Forums  

Target = blank

alt.html.tags alt.html.tags


Discuss Target = blank in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robin Raybould
 
Posts: n/a

Default Target = blank - 01-27-2005 , 08:34 AM






Target = blank will open a new browser but how do you open a new small
window without all the browser stuff i.e. a little window just for comments
etc. etc.

Thanks for help in advance.

rraybould (AT) camrax (DOT) com (beware spamblocker)



Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Target = blank - 01-27-2005 , 08:46 AM






"Robin Raybould" <rraybould (AT) mindspring (DOT) com> wrote:

Quote:
Target = blank will open a new browser
It may, or it may not. First, the browser may disallow that. Second, the
defined meaning of target="blank" is not the same as that of
target="_blank", which is what you probably mean; see
http://www.cs.tut.fi/~jkorpela/www/links.html#js

Quote:
but how do you open a new small
window without all the browser stuff i.e. a little window just for
comments etc. etc.
You don't, in HTML. You could use JavaScript for the purpose. There are two
ways to do that: the wrong way, and the very wrong way. The crucial
difference is what happens when JavaScript is disabled.

And you shouldn't, except in very special circumstances (and everyone
thinks his case is very special, but it almost never is). Opening new
windows automatically is among the ten most common and most harmful
mistakes in Web design, see e.g.
http://www.useit.com/alertbox/9605.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
  #3  
Old   
Robin Raybould
 
Posts: n/a

Default Re: Target = blank - 01-27-2005 , 10:34 AM



Thanks for this - Yes I meant target = _blank. I take your point about
clutter etc but what I wanted was just very small boxes on an academic text
intensive site which would give the reader who cared a little extra
information - like a foot note - in a box which could then close when read
and the reader would continue the main text. I think that would be quite
good and relieve the main text of clutter.

I have no java knowledge at all; in fact very little html ! Where can I can
get code for the little box!

Robin Raybould

"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote

Quote:
"Robin Raybould" <rraybould (AT) mindspring (DOT) com> wrote:

Target = blank will open a new browser

It may, or it may not. First, the browser may disallow that. Second, the
defined meaning of target="blank" is not the same as that of
target="_blank", which is what you probably mean; see
http://www.cs.tut.fi/~jkorpela/www/links.html#js

but how do you open a new small
window without all the browser stuff i.e. a little window just for
comments etc. etc.

You don't, in HTML. You could use JavaScript for the purpose. There are
two
ways to do that: the wrong way, and the very wrong way. The crucial
difference is what happens when JavaScript is disabled.

And you shouldn't, except in very special circumstances (and everyone
thinks his case is very special, but it almost never is). Opening new
windows automatically is among the ten most common and most harmful
mistakes in Web design, see e.g.
http://www.useit.com/alertbox/9605.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html





Reply With Quote
  #4  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Target = blank - 01-27-2005 , 12:42 PM



"Robin Raybould" <rraybould (AT) mindspring (DOT) com> wrote:

Quote:
Thanks for this
Consider learning how to post to Usenet, see
http://www.xs4all.nl/%7ewijnands/nnq/nquote.html

Quote:
I take your point about clutter etc but
"But" seems to me a postfix operator indicating logical negation here.

Quote:
what I wanted was just very small boxes on an academic
text intensive site which would give the reader who cared a little
extra information - like a foot note
Popup windows are particular bad for such purposes. Use links, Luke.
Hints on footnote-like stuff:
http://www.cs.tut.fi/~jkorpela/public_html/www/fn.html

Quote:
I have no java knowledge at all;
You were the first to mention java in this thread.

Quote:
in fact very little html !
Then study it. I'm sure you'll find many tutorials, some of them worth
reading.

Quote:
Where can I can get code for the little box!
Sorry, the information is distributed on a need to know basis,
and on other channels. As mentioned, it's not HTML.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
  #5  
Old   
jake
 
Posts: n/a

Default Re: Target = blank - 01-28-2005 , 06:30 PM



In message <vZ6Kd.410$Yd7.141 (AT) newsread2 (DOT) news.atl.earthlink.net>, Robin
Raybould <rraybould (AT) mindspring (DOT) com> writes
Quote:
Target = blank will open a new browser but how do you open a new small
window without all the browser stuff i.e. a little window just for comments
etc. etc.

Thanks for help in advance.

rraybould (AT) camrax (DOT) com (beware spamblocker)

Just enter 'pop-up windows' into Google and you'll get pointers to quite
a few tutorials on the subject.

regards.
Quote:
--
Jake



Reply With Quote
  #6  
Old   
Norbtach
 
Posts: n/a

Default Re: Target = blank in small window - 02-13-2005 , 04:49 PM




"Robin Raybould" <rraybould (AT) mindspring (DOT) com> wrote in message news :
Quote:
Target = blank will open a new browser but how do you open a new small
window without all the browser stuff i.e. a little window just for
comments
etc. etc.

Try this

<A HREF="javascript:void(0)"
ONCLICK="open(
'sample2.htm','miniwin','toolbar=0,location=0,dire ctories=0,status=0,menubar
=0,scrollbars=0,resizable=0,width=300,height=300') ">
Open A Window</A>

NOTE
change the name sample2.htm into into the file to be opened,
you can also change the values of width and height.

regards Robert




Reply With Quote
  #7  
Old   
Norbtach
 
Posts: n/a

Default Re: Target = blank in small window(2) - 02-13-2005 , 04:53 PM



NOTE all text between brackets ( ) must be on ONE line, else it won't work

Robert

Quote:
Try this

A HREF="javascript:void(0)"
ONCLICK="open(

'sample2.htm','miniwin','toolbar=0,location=0,dire ctories=0,status=0,menubar
=0,scrollbars=0,resizable=0,width=300,height=300') "
Open A Window</A

NOTE
change the name sample2.htm into into the file to be opened,
you can also change the values of width and height.

regards Robert





Reply With Quote
  #8  
Old   
Lachlan Hunt
 
Posts: n/a

Default Re: Target = blank in small window - 02-20-2005 , 07:18 AM



Norbtach wrote:
Quote:
A HREF="javascript:void(0)"
ONCLICK="open(
'sample2.htm','miniwin','toolbar=0,location=0,dire ctories=0,status=0,menubar
=0,scrollbars=0,resizable=0,width=300,height=300') "
Open A Window</A
I see you don't like google, or anyone with JavaScript disabled to be
able to access the document. You should at least use:

<a href="sample2.html" ...>...</a>

You should also be aware that, even when JS is enabled, such functions
may fail to open a new window and, depeding on the user agent
configuration, may open a new tab or even just replace the current
window like a regular link. That's what my browser does, I find it
excessively annoying when an author decides I want a new window, since I
usually don't.

The only problem with that is that some websites require the new window
to function properly (which is the author's fault), in which case I
usually leave and find a site that does work for me.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox


Reply With Quote
  #9  
Old   
Norbtach
 
Posts: n/a

Default Re: Target = blank in small window - 02-20-2005 , 01:30 PM



My answer is a just what was asked:
target=_blank in a small window.
Regards Robert


"Lachlan Hunt" <spam.my.gspot (AT) gmail (DOT) com> wrote

Quote:
Norbtach wrote:
A HREF="javascript:void(0)"
ONCLICK="open(

'sample2.htm','miniwin','toolbar=0,location=0,dire ctories=0,status=0,menubar
=0,scrollbars=0,resizable=0,width=300,height=300') "
Open A Window</A

I see you don't like google, or anyone with JavaScript disabled to be
able to access the document. You should at least use:

a href="sample2.html" ...>...</a

You should also be aware that, even when JS is enabled, such functions
may fail to open a new window and, depeding on the user agent
configuration, may open a new tab or even just replace the current
window like a regular link. That's what my browser does, I find it
excessively annoying when an author decides I want a new window, since I
usually don't.

The only problem with that is that some websites require the new window
to function properly (which is the author's fault), in which case I
usually leave and find a site that does work for me.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox



Reply With Quote
  #10  
Old   
gus
 
Posts: n/a

Default Re: Target = blank in small window - 03-20-2005 , 05:14 PM




"Norbtach" <norbtach (AT) wanadoo (DOT) nl> wrote

Quote:
My answer is a just what was asked:
target=_blank in a small window.
Regards Robert


"Lachlan Hunt" <spam.my.gspot (AT) gmail (DOT) com> wrote in message
news:42188e39$0$10077$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au...
Norbtach wrote:
A HREF="javascript:void(0)"
ONCLICK="open(

'sample2.htm','miniwin','toolbar=0,location=0,dire ctories=0,status=0,menubar
=0,scrollbars=0,resizable=0,width=300,height=300') "
Open A Window</A

I see you don't like google, or anyone with JavaScript disabled to be
able to access the document. You should at least use:

a href="sample2.html" ...>...</a

You should also be aware that, even when JS is enabled, such functions
may fail to open a new window and, depeding on the user agent
configuration, may open a new tab or even just replace the current
window like a regular link. That's what my browser does, I find it
excessively annoying when an author decides I want a new window, since I
usually don't.

The only problem with that is that some websites require the new window
to function properly (which is the author's fault), in which case I
usually leave and find a site that does work for me.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox


heres some code:

put this in your head...
<SCRIPT LANGUAGE="JavaScript">
function popup(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=355,height=350,left = 312,top = 246.5');");
}
</script>

and then this as your link in the body: <a href="javascriptopup(page.html)>

you might need to enclose the words page.html in inverted commas, i can't remember.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.