Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to auto click webpage in angular

@ViewChild('myButton') myButton : ElementRef;

triggerClick() {
    let el: HTMLElement = this.myButton.nativeElement as HTMLElement;
    setTimeout(()=> el.click(), 5000);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #auto #click #webpage #angular
ADD COMMENT
Topic
Name
4+5 =