Saturday, 20-Apr-2024, 6:38 AM


Main
Sign Up
Login
Wains Organization Welcome Guest | RSS  
Menu

Section categories
Javascripts [45]
Awesome javascripts codes..
HTML scripts [21]
HTML scripts you never seen before...

Information


Please Login Or Register to see all info
Name : Guest
Username : Guest
IP Address : 3.143.4.181
Group : Guests
Browser :

<..........................>
Current date : 20-Apr-2024
Current day : Saturday

Get Updates

New Downloads
[ Games/Torrents ]
[ Games/Torrents ]
[ Softwares ]
demo image         
jQuery Book - 1.2-V1 (0)
[ Games/Torrents ]

Statistics

Total online: 1
Guests: 1
Users: 0

Main » Articles » Javascripts

Show Popup when clicking on a button
Code

<!-- this script got from www.wainsorg.ucoz.com-Coded by: AlexWains-->
<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 -->

<font face="Tahoma"><a target="_blank" href="http://www.wainsorg.ucoz.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>

Preview :














JavaScript Free Code

Category: Javascripts | Added by: Alex (16-Feb-2013) | Author: Ali Ameen Wains E W
Views: 822 | Tags: Codes, by Ali Ameen Wains, Show Popup when clicking on a butto, Publisher, javascripts | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Sign Up | Login ]
Search

Extras

Partners
Add your website

New Scripts
[ HTML scripts ]
[ Javascripts ]
[18-Apr-2013]
Random Link (0)
[ HTML scripts ]
[14-Mar-2013]
Alignments (0)
[ HTML scripts ]
[14-Mar-2013]
Table with Color effect (0)
[ HTML scripts ]
[14-Mar-2013]
Line Divider (1)

New Blogs
[ Custom Script ]
[ How? ]
[ How? ]
[ How? ]

Our poll
How would you rate your knowledge in uCoz?

Copyright Wains Org. © 2024Powered by uCoz / Customization by Ali Ameen Wains / About AdminPrivacy Policy