I would like a button to be clicked automatically once a page has been loaded. I have looked at onload events but can't find a suitable option and suspect that I might need a separate script. Has anyone any suggestions as to how this might be achieved?
Brian
Can a button be clicked using events?
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
- BaconFries
-
- Posts: 5364
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Can a button be clicked using events?
Without sounding rude in anyway what so ever "Google"Has anyone any suggestions as to how this might be achieved?
Couple of examples
https://forums.asp.net/t/2069637.aspx?H ... ge+is+load+
https://stackoverflow.com/questions/539 ... d/53981378
button to be clicked automatically once a page has been loaded
https://www.google.com/search?q=button+ ... e&ie=UTF-8
Re: Can a button be clicked using events?
No offence taken BF - I had carried out a few searches (using Bing) but none seemed to give a definitive answer. I will explore your suggestions to see if I can get one to work.
I had hoped that there might have been an "off the shelf" solution that I had missed - perhaps just wishful thinking
I had hoped that there might have been an "off the shelf" solution that I had missed - perhaps just wishful thinking
Re: Can a button be clicked using events?
Thanks for your suggestions BF and I am pleased to say that I have got the following script to work
Now all I have to do is to get the sequence of events in the right order!
Brian
Code: Select all
<script>
window.onload=function(){
$("#Button1").click();
}
</script>
Brian
- BaconFries
-
- Posts: 5364
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Can a button be clicked using events?
Glad to have helped