JavaScript Prompts
Well, let's say you wanted to get somebody's name before they saw the page, and then write their name on your page right before their very eyes... Well, you can do this using a javascript prompt. Here's the command:
read moreLoading...
Well, let's say you wanted to get somebody's name before they saw the page, and then write their name on your page right before their very eyes... Well, you can do this using a javascript prompt. Here's the command:
read moreOK, I finally got around to writing the javascript password protection tutorial. You will see the example script here is pretty straightforward, but it is also pretty easy to get around. I'll tell you why and give you links to more secure scripts later in this tutorial.
read moreA javascript confirmation box can be a handy way to give your visitors a choice of whether or not an action is performed. A confirmation box will pop up much like an alert box, but will allow the viewer to press an "OK" or "Cancel" button.
read moreTo get started with JavaScript, you will want to be able to see the tag that will set a script apart from the HTML. The tags used to begin and end a script are the <SCRIPT> and </SCRIPT> tags. The opening tag should appear like this:
read moreTo write scripts using buttons, we will first need to know how to place a button on the page. To do this, you will need to use the <FORM> tags around the button tag. Here is an example of the HTML that will place a button on the page:
read moreWell, you want to add one of those JavaScript alert boxes that come out of nowhere, don't you? Okay, let's begin with the alert box that just tells the viewer something you want them to know. Here's the alert command:
read moreWell, its time to try out your first javascript. This one is nice because we don't have to deal with adding the script tag. This little script will write something of your choice to the browser's status bar when you move your mouse over a link. Let's look at the example:
read more
Editor's Pick in JavaScript
, February 2006
Here is a list of short but invaluable Java scripts you can insert into your own site code to implement a number of small but extremely useful features.
Many things can be done with layers, one of the most useful thing being the navigational drop down menus. Only problem with many HTML editors including Dreamweaver at the moment is that they do not provide an option to close or hide the layers after a specified time. So most of the time you need to ...
read moreCopyright © . All Rights Reserved