Results 1 to 2 of 2

Thread: status text

  1. #1

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    status text

    I want to get status text of any link when this link is clicked.
    HTML Code:
    <script language="JavaScript">
    function ClickLog()
                { 
    	var ecb=escape(window.status);
    	alert (ecb);	  	
    	}  
     
      
    </script> 
    
    <table width="100%" border="1" >
      <tr>
        <td onClick="ClickLog()"><a href="http://www.usatoday.com">Exclusive</a></td>
      </tr>
    </table>
    But alert message is showing Blank.

    and when i change code like that
    HTML Code:
    <script language="JavaScript">
    function ClickLog()
                { 
                 window.status="hello world"; 
    	var ecb=escape(window.status);
    	alert (ecb);	  	
    	}  
     
      
    </script> 
    
    <table width="100%" border="1" >
      <tr>
        <td onClick="ClickLog()"><a href="http://www.usatoday.com">Exclusive</a></td>
      </tr>
    </table>
    now i get alert message of "hello world"

    So i want to figure what is problem with first code.
    Actually i want to get alert message showing "http://www.usatoday.com".
    where am i doing mistake.
    Thank You.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: status text

    Because I think you still have to set the status message with the URL, the text it normally displays there doesn't really "count"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width