[Javascript] How to change window status

David Lovering dlovering at gazos.com
Thu Aug 28 01:08:29 CDT 2003


well, I'm not quite sure what "text" is supposed to represent, but I do recognize what might be construed as a syntax anomaly which would (possibly) invalidate the remainer of the anchor definition.  Try something like this --

menu.addMenuItem("<a class='M' href='/index1.php' style='text-decoration: none' target='info' onmouseover='window.status="blah-blah-blah"'>Click here</a>");

Also, the old precidence rules suggest (but I've never actually found it to be required) that the outer quotes be the double quote ("), and the inner quotes be the single (').  Mind you, I've violated the suggestion hundreds of times, and no one has zapped my karma yet.  However, defining a style (CSS) parameter outside of a style declaration is generally regarded as a no-no even now.

-- Dave Lovering
  ----- Original Message ----- 
  From: murugesan 
  To: [JavaScript List] 
  Sent: Wednesday, August 27, 2003 10:16 PM
  Subject: [Javascript] How to change window status


  I have a code

  menu.addMenuItem("<a class=M href='/index1.php' text-decoration:none target='info' >Click here</a>");

  Now I want to change the window status upon mouseover on this link.
  How can I achieve this?
  i.e I need a valid statement of form
  menu.addMenuItem("<a class=M href='/index1.php' text-decoration:none target='info'  onmouseover=' window.status="text" '>Click here</a>");

  -murugesan


------------------------------------------------------------------------------


  _______________________________________________
  Javascript mailing list
  Javascript at LaTech.edu
  https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030827/8346fa8d/attachment.htm>


More information about the Javascript mailing list