Home » Archive by category "JavaScript" (Page 3)

Archive for the 'JavaScript' Category

Drop-down onChange event

Chose file type: <select onChange=”window.location=this.options[this.selectedIndex].value;”> <option selected>Please select</option> <option value=”Music.aspx”>Music Files</option> <option value=”Movie.aspx”>Movies</option> <option value=”OfficeDoc.aspx#word”>Word Files</option> </select> EXAMPLE: Chose file type: Please select…Music FilesMoviesWord Files

OnMouseOver Pop-Up Box

code <head> <meta http-equiv=”Content-Language” content=”en-us”> <meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″> <title>My Page</title> <link rel=”stylesheet” href=”../link.css” type=”text/css”> <script type=”text/javascript” src=”../javascript/browser_detect.js”></script> <script type=”text/javascript” src=”../javascript/popup.js”></script> </head> <body> PROFESSIONAL SKILLS<a onmouseover=”popup(‘Skills and abilities not directly related to the position for which you are applying, however, they may provide additional insight into your abilities as an employee (Examples: typing 60 words […]

Page Redirect

HTML <meta http-equiv=”refresh” content=”0;url=http://google.com”> Javascript <script language=”javascript”> <!– location.replace(“http://google.com”) //–> </script> Asp / ASP.Net <% Request.Redirect(“http://google.com”) %> Php <?php header( ‘Location: http://google.com’ ) ; ?> Perl (method 1) #!/usr/bin/perl use strict; use warnings; my $url = “http://google.com”; print “Location: $url\n\n”; (method 2) #!/usr/bin/perl print “Content-Type: text/html\n”; print “Location: http://google.com\n\n”; (method 3 – using CGI module) […]