On Sat, 29 Jan 2000, Leon wrote:

> You know, we ought to write a bit of code that tests whether
> JavaScript is on.  I was thinking about this recently.  We would do it when
> the user first hits the site...before we know whether they have cookies on.
> ScreenURL would send a variable signalling that JavaScript is off, but we'd
> also put a block of JavaScript that would activate whenever a user clicks a
> link and tweak the URL before activating it.  I'm not 100% sure it can be
> done.  If anyone has an idea for making this work, let me know.

Using this function:

  function jscheck(link)
  {
     document.location = link.href + "?jsCheck=TRUE";
     return false;
  }

this link:

  <a href="test.html" onClick="jscheck(this);">test it</a>

goes to "test.html?jsCheck=TRUE" if javascript is on.

- Isaac  =)

|----------------------------|\ | | | /|----------------------------|
  Isaac Reuben               | \| | |/ |           [EMAIL PROTECTED]  
                      -------------------------
    "Maybe she's just pieces of me you've never seen" - Tori Amos  
|-------------------------------------------------------------------|




------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to