Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   Чаты (https://forum.antichat.xyz/forumdisplay.php?f=10)
-   -   Снифaер формы на js (https://forum.antichat.xyz/showthread.php?t=1081)

13.09.2003 00:25

<html>
<head>
<title>123</title>
</head>
<body>

<img src="javascript: function yo(){do snth; return true;}document.msg.onsubmit=yo();">

<form action="localhost" method="POST" name="msg">
<input type=submit name="s">
</form>

</body>
</html>
Почему-то это не работает. Короче задача переопределить событие сабмит для формы через яву... отправлять данные и открыть попап.

Algol 13.09.2003 10:11

Делай так:

<html>
<head>
<title>123</title>
</head>
<body>

<img src="javascript:document.msg.onsubmit=functio n(){alert();return true;};">

<form action="localhost" method="POST" name="msg">
<input type=submit name="s">
</form>

</body>
</html>


Время: 17:00