Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8189

Re: FAQ Topic - How do I find the size of the window? (2011-11-08)

From "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Newsgroups comp.lang.javascript
Subject Re: FAQ Topic - How do I find the size of the window? (2011-11-08)
Date 2011-11-10 09:22 +0200
Organization A noiseless patient Spider
Message-ID <j9fu2t$3d4$1@dont-email.me> (permalink)
References <4eb8710d$0$282$14726298@news.sunsite.dk> <587e394e-3764-467d-89b3-5b4363895580@c7g2000vbj.googlegroups.com> <nrJWjAKksruOFwEx@invalid.uk.co.demon.merlyn.invalid>

Show all headers | View raw


11/9/2011 7:40 PM, Dr J R Stockton wrote:

> While I'm here : can the effect of script '<element>.style.cursor =
> "pointer" ;' be achieved in HTML, and how?  Element is a TD or TH.

This looks like a trick question, or a rhetorical question, or trolling 
- I'll take it as a trick question. Although the question has nothing to 
do with the current Subject, I'll leave it to you to change the Subject 
if you have an idea of what this really about.

The first and obvious answer is yes, with
<td style="cursor: pointer">
but I suspect that this won't qualify, since it - like the JavaScript 
code, too - really makes use of CSS as the essential tool.

The next answer is:

<td><td><a id=myid42 href=#myid42>Hello world</a></td>

There are of course many ways to refute this answer. The theoretical 
objection is that there is no guarantee that browsers do what they 
actually do with links. A more practical point is that the effect spans 
only the link, not the cell, and there can be a huge difference 
(depending on other cells in the same column, and styling) - and fixing 
this with CSS would cause the same objections as the first answer.

The solution has some side effects, too, but side effects were not 
forbidden in the question.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

FAQ Topic - How do I find the size of the window? (2011-11-08) "FAQ server" <javascript@dotinternet.be> - 2011-11-08 00:00 +0000
  Re: FAQ Topic - How do I find the size of the window? (2011-11-08) David Mark <dmark.cinsoft@gmail.com> - 2011-11-08 06:10 -0800
    Re: FAQ Topic - How do I find the size of the window? (2011-11-08) Dr J R Stockton <reply1145@merlyn.demon.co.uk> - 2011-11-09 17:40 +0000
      Re: FAQ Topic - How do I find the size of the window? (2011-11-08) "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-10 09:22 +0200
      Re: FAQ Topic - How do I find the size of the window? (2011-11-08) David Mark <dmark.cinsoft@gmail.com> - 2011-11-10 06:13 -0800

csiph-web