Skip to main content

Posts

Showing posts from February 26, 2023

How to trigger or pop-up on Button click - java script

  < html > // first way to open pop-up < p style = " align-content: center" >   < A style = " align-content: center" HREF = "https://vasubirla.blogspot.com/" onClick = "return popup(this, 'stevie')" > Vasu Birla </ A >< br > </ p > < p align = "center" >   < input type = "button" onclick = " popup ( this , 'about') " value = "CLICK HERE" > </ p > //2nd way to open new window on click < script > function popup ( mylink , windowname ) {   if (! window . focus )     return true ;   var href ;   if ( typeof ( mylink ) == 'string' )     href = mylink ;   else     href = mylink . href ;   window . open ( href , windowname , 'width=400,height=200,scrollbars=yes' );   return false ; } </ script > </ html >