| |

VerySource

 Forgot password?
 Register
Search
View: 774|Reply: 5

Help: a very strange foreground and background problem

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-16 21:20:01
| Show all posts |Read mode
Ask everyone a question:
OnClientClick = abc () runat = "server" OnClick = "Button1_Click"

abc () is a script function, the return is FALSE; why does it go to the background when the button is clicked (that is, the OnClick event is also executed), the background will not be executed on other machines, only the one I use in the company The machine will also execute to the background. I do n’t know if I have to set it up, please master it, thank you!
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-21 23:00:01
| Show all posts
OnClientClick = abc ()
===>
OnClientClick = "return javascript: abc ()"
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-1 09:54:01
| Show all posts
To add a return
shenmue024Positive Solution
Reply

Use magic Report

0

Threads

15

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-2-1 14:27:01
| Show all posts
correct
Reply

Use magic Report

0

Threads

10

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-9 11:30:02
| Show all posts
OnClientClick = abc () runat = "server" OnClick = "Button1_Click"
Change to
OnClientClick = return abc () runat = "server" OnClick = "Button1_Click"
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-2-9 13:00:01
| Show all posts
OnClientClick = "abc (); return false" runat = "server" OnClick = "Button1_Click"
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list