FREE CODE Friday, 10.20.2017, 0:35 AM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • HTML table placeholder Have(0) reviews faxuhi
  • Html graphic bullets Have(0) reviews faxuhi
  • Different times of the world by the users choice from a list Have(0) reviews faxuhi
  • Mouseover Alert HTML Script Have(0) reviews faxuhi
  • Redirect to another page and link automatically to other pg Have(0) reviews faxuhi
  • Combo box link box to browse your website easily Have(0) reviews faxuhi
  • Message to user by clicking a button Have(0) reviews faxuhi
  • Background changing color effect Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
  • Page 1 of 11
    Forum » Web Javascript » Show popup when clicking on a button » Show popup when clicking on a button
    Show popup when clicking on a button
    faxuhiDate: Sunday, 07.24.2011, 12:23 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <HTML>
    <HEAD>
    <!--START OF PopUp on Button Click-->

    <SCRIPT LANGUAGE="JavaScript">
    function AlertCC(label, msg)
    {
       var cc1 =  
         "<TITLE>Window Title</TITLE>" +
         "<BODY BGCOLOR='FFFFFF'><TABLE BORDER=0><TR>" +
             "<TD WIDTH=90% HEIGHT=90 VALIGN=TOP ALIGN=LEFT>"+
             "<FONT SIZE=4 FACE=ARIAL>"
        
       var cc2 = "<FONT COLOR='FF0000'><B>"+label+"</B></FONT><BR><P>"

       var cc3 =    
         "</TD><TD WIDTH=10%> </TD></TR><TR><TD> </TD>"+
         "<TD VALIGN=BOTTOM ALIGN=RIGHT>"+
         "<FORM><INPUT TYPE='BUTTON' VALUE='Close Window'" +
                        "onClick='self.close()'>"  +
         "</FORM></TD></TR></TABLE></BODY>"

       
       popup = window.open("","popDialog","height=280,width=400,scrollbars=no")
       popup.document.write(cc1+cc2+msg+cc3)
       popup.document.close()
    }

    function ccalert1()
    {
       AlertCC('Alert One', 'This script will let you place information about your product or topic of choice.')
    }
    function ccalert2()
    {
       AlertCC('Alert Two', 'This script will let you place information about your product or topic of choice.')
    }
    function ccalert3()
    {
       AlertCC('Alert Three', 'This script will let you place information about your product or topic of choice.')
    }
    function ccalert4()
    {
       AlertCC('Alert Four', 'This script will let you place information about your product or topic of choice.')
    }
    </SCRIPT>
    </HEAD>
    <BODY>
    <CENTER><FORM><INPUT TYPE="BUTTON" VALUE="[ Alert One ]" onClick="ccalert1()"></FORM></CENTER><p>
    <CENTER><FORM><INPUT TYPE="BUTTON" VALUE="[ Alert Two ]" onClick="ccalert2()"></FORM></CENTER><p>
    <CENTER><FORM><INPUT TYPE="BUTTON" VALUE="[ Alert Three ]" onClick="ccalert3()"></FORM></CENTER><p>
    <CENTER><FORM><INPUT TYPE="BUTTON" VALUE="[ Alert Four ]" onClick="ccalert4()"></FORM></CENTER><p>
    <!-- END OF SCRIPT -->
     
    Forum » Web Javascript » Show popup when clicking on a button » Show popup when clicking on a button
    Page 1 of 11
    Search:

    Copyright MyCorp © 2017 Website builderuCoz