Re: On click button in php [message #180464 is a reply to message #180463] |
Tue, 19 February 2013 10:23 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Arno Welzel wrote:
> Thomas 'PointedEars' Lahn, 2013-02-17 21:09:
>> Arno Welzel wrote:
>>> nag, 2013-02-16 03:15:
>>> [...]
>>>> <a href="#"><input type="button" onclick="<a href='details.php?$id='
>>>> > </a>" value="submit" style="margin-left:4.0em;"></a>
> [...]
>>>> but when I click the button (the submit button) nothing is happening.
>>> Of course not. onClick is an event handler and you have to use
>>> JavaScript there.
>> “onclick” is an event-handler attribute (for the “click” event of the
>> DOM), and unless the HTML version is HTML5, one can use any scripting
>> language in its value. ECMAScript-based scripting languages like
>> JavaScript are best supported, though.
>>
>> See also: <http://PointedEars.de/es-matrix>
>
> Theoretically - yes. In the real world ECMAScript-based scripting
> languages like JavaScript are the only useful choice, since none of the
> current browsers except Internet Explorer support anything else out of
> the box.
That is what I said.
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
|
|
|