Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var i = false;
- function display_alert()
- {
- if (i == false) {
- alert("Один раз");
- }
- i = true;
- }
- </script>
- <a href="#" onclick="display_alert();return false;">Один раз</a>
- <script>
- var j = false;
- function display_alert2()
- {
- if (j == false) {
- alert("Через раз");
- }
- j = true - j;
- }
- </script>
- <a href="#" onclick="display_alert2();return false;">Через раз</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement