The Share All
Thursday, September 12, 2024
Link
Log in or Sign up
Forums
>
...
>
Programming
>
JavaScript
>
ADVERTISING
Y U NO DO IT?
Advertising (learn more)
Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.
Starts at just $1 per CPM or $0.10 per CPC.
Body onLoad Click link
0
azylka
azylka
Member
Hi guys. I have a quick question. What's the code for having a link with the id "autoid" clicked when the body of my html code loads?
Thanks,
Alex
Dec 23, 2009IP
azylka
azylka
Member
Ruben Sargsyan's personal website
Code (markup):but it doesn't work on firefox. Or you can use this:
Ruben Sargsyan's personal website
Code (markup):
Dec 24, 2009IP
brueckner
brueckner
Peon
this javascript code is very good.
but how can i set a timer. i mean when site is loading, where i have place that code, the code is clicking on the link button. that is some bit bad. i want that the code clicking to the button link after 5 seconds when site is complete loading.
any ideas???
Jun 19, 2011IP
vitalytis
vitalytis
Peon
brueckner said: ↑
this javascript code is very good.
but how can i set a timer. i mean when site is loading, where i have place that code, the code is clicking on the link button. that is some bit bad. i want that the code clicking to the button link after 5 seconds when site is complete loading.
any ideas???
window.setTimeout('clickit()',5000);
function clickit(){
location.href = document.getElementById("autoid");
}
HTML:This should work :)
Jul 2, 2011IP
vruvishal
vruvishal
Member
Hi,
I agree with above codding solution. But in place of timer. U can use
window.onload=functionName;
it is too better than javascript timer function.
Vishal
vruvishal@gmail.com
Jul 4, 2011IP
idzeshan
idzeshan
Member
Hello i found a website for this
http://www.oklearncode.com/get-onload-click-link-automatically-script/
Mar 19, 2015IP
Rohitash Jhunjhunwala
Rohitash Jhunjhunwala
Member
please ask question in well manner.
Aug 19, 2017IP
(You must log in or sign up to reply here.)
Forums
>
...
>
Programming
>
JavaScript
>
HomeForums
Search Forums
Recent Posts
Spy
ToolsMarketplaceAdvertisingMembers
Search
Contact Us
Help
Ter
Tuesday, September 10, 2024
Friday, September 6, 2024
Wednesday, May 29, 2024
test
@kcmcgill3 #duet with @Jenn #fyp #genxvibe #genxtrain #1975 ♬ We Built This City - Starship
Subscribe to:
Posts (Atom)