PHP Classes

Only in a link

Recommend this page to a friend!

      PHPLiveX  >  All threads  >  Only in a link  >  (Un) Subscribe thread alerts  
Subject:Only in a link
Summary:Does this function call only works if in a link?
Messages:1
Author:Erick Vavretchek
Date:2007-06-19 06:01:24
 

  1. Only in a link   Reply   Report abuse  
Picture of Erick Vavretchek Erick Vavretchek - 2007-06-19 06:01:24
Hi All,

Does this function call only work if in a link?
E.G.

This will work!!!
=================
<a href="javascript:test('it is an example', 'target=showText,preload=loadSpan');">test it</a>

This will NOT:
<input type="button" value="test it" onclick="javascript:test('it is an example', 'target=showText,preload=loadSpan');">

Thanks,
Erick