SPN Logo   Add Your Site To ExactSeek For Free!
  Advertise in SiteProNews SiteProNews Archives About SiteProNews SPN Privacy Statement FeedBack SiteProNews Homepage SiteProNews Image Map SiteProNews IT Career Center
  Put Your Marketing Efforts on Auto Pilot
    QUICK LINKS
 
JANUARY 11,  ISSUE # 123
Search the Web

Add your Site to ExactSeek
Subscribe
Subscribe to one, or more, of four great newsletters: SiteProNews, our daily Webmaster ezine; NetViewpoint, the weekly ezine that focuses on current and future Net trends; EzineReport, the weekly ezine that evaluates and reviews other ezines; and NoviceNews, a daily newsletter with useful tips and tricks for Net novices and all computer users.

Just enter your email address in the box below and click the subscribe button.

Text HTML Newsletter
SiteProNews
NetViewPoint
EzineReport
NoviceNews

Tip of the Day
It's human nature to be worried about making a purchase, especially if you're buying by mail, phone or over the Internet. Your prospects need reassurance that their purchase is not risky. Two of the easiest ways to do this right away are to strengthen and lengthen your guarantee.

Today's tip by David Garfinkel, author of Advertising Headlines That Make You Rich
 

MyZip.com Downloads
SPN App of the Day
AVG 6.0 Anti-Virus (5.2 MB) is an excellent free virus scanner, providing many features that you would only expect to get in a commercial application. It offers an easy-to-use interface, an automatic update feature, free virus database updates, an email scanner, resident protection, automatic healing of infected files and more. Free upon questionnaire completion.

If you have a Webmaster App that you would like listed on the SPN site, send us an email with details to: wapps@sitepronews.com
SPN Site of the Day
CNet's Builder.com is the Godzilla of webmaster resource sites. The How-To Library and Reference sections alone cover almost every aspect of web site development imaginable. Throw in the articles, books and web developer tools and you have one the Web's most comprehensive resource sites.

Think your web site qualifies as a SPN Site of the Day, send us an email with details to: sotd@sitepronews.com

Must Read Ebooks
In the coming months, we plan to provide our visitors with one of the most comprehensive EBook link libraries on the Web. Check back frequently for new additions. In the meantime, check out our current selection of Commercial and 80 plus Free EBooks.

We welcome authors of EBooks to submit their publications to SPN via email to: ebooks@sitepronews.com
 

Need some good promotion tools to give your web site an edge on the competition? Well, this is a good place to start your search. We'll be adding freeware and shareware promotion software on a regular basis Check out our current selections right now.
 
Submission Tools
Site submission can be a time intensive undertaking. Fortunately, there are growing number of submission applications that can save you time and money. Some are sophisticated and some are pretty basic. You can check out our current picks right here.
 
Link to SiteProNews
Link your site to SiteProNews, the free, daily newsletter for WebMasters and the fastest growing resource site for novice and expert HTML authors on the Web.

Or, Add SPN to your site with just 2 lines of JavaScript code. Top content for your site without any of the work.

Check out the SPN Promotion Partners page. Some great sites have opted to support the SPN newsletter

Recommended Services
ROIbot - A Suite of Marketing Power Tools for Pennies a Day!

Web-Source.net - Your Guide to Professional Web Site Design & Development

PreWired.com - Providing ISPs & Publishers an Instant Web based revenue stream!

Automarketic.com - Skyrocket Sales & Explode Profits With The #1 Online Marketing Machine..

SubmitPlus - Promote your site to 110 search engines... FREE!

Pocket Flier! - Generate 25,000 targeted visitors to your site!

NetMechanic - Web Tools For Site Maintenance, Promotion, Browser Compatibility & More.

Affinity - Robust, reliable Web Hosting for small & medium-sized web sites.

StartBlaze
Prime Web Traffic
For 2 cents/Hit!
 

ExactSeek
EzineHub
NoviceNews
GoArticles
SPN Awards
ROIbot Pro
RankPilot
Submit Plus
PocketFlier
NetMechanic
Free Money
Magic Words
Testimonials

Some Useful JavaScript Tricks
By Mitchell Harper
JavaScript can be one of the most useful additions to any web page. It comes bundled with Microsoft Internet Explorer and Netscape Navigator and allows us to perform field validations, mouse-overs images, open popup windows, and a slew of other things.

In this article I will show you how to:

- Display the browser name and version number
- Change the text in the status bar of the browser
- Use an input box to get text from the user
- Use a message box to display text to the user
- Change the title of the browser window

PUT YOUR SITE PROMOTION EFFORTS ON AUTO-PILOT

ROIbot 8.0 has tools for building traffic while you sleep, spying on your competitors, tracking your marketing, managing your email newsletters and follow-ups... and much more all in one easy to use package. Easy to use, insanely powerful and affordable on any budget.

Click Here For Details

Before that, however, we need to know how to setup our web page so that it can run the JavaScript. JavaScript code is inserted between opening and closing script tags: <script> and </script>, like this:

<script language="JavaScript">

--> JavaScript code goes here <--

</script>

These script tags can be placed anywhere on the page, however, it's common practice to place them between the <head>and </head> tags. A basic HTML page that contains some JavaScript looks like this:

<html>
<head>
<title> My Test Page </title>
<script language="JavaScript">

function testfunc()
{
var x = 1;
}

</script>
</head>
<body>
<h1>Hello</h1>
</body>
</html>

For the examples in this article, you should use the basic document format I have just shown you, inserting the JavaScript code between the <script> and </script>tags. When you load the page in your browser, the JavaScript code will be executed automatically.

Displaying the browsers name and version number

The "navigator" object in JavaScript contains the details of the user's browser, including its name and version number. They can be displayed in a browser using the document.write function:

document.write("Your browser is: " + navigator.appName);
document.write("<br>Its version is: " + navigator.appVersion);

I run Windows 2000 and Internet Explorer version 6, so the output from the code above looks like this in my browser window:

Your browser is: Microsoft Internet Explorer
Its version is: 4.0 (compatible; MSIE 6.0b; Windows NT 5.0)


ADVANCED HYPNOTIC WRITING

The unparalleled sequel to Joe Vitale's blockbuster "Hypnotic Writing." It reveals how to use the phenomenon of hypnotic suggestion to turn your words into cash.

Click Here For Details


Changing the text in the status bar of the browser

To change the text in the status bar of a browser window, just change the "status" member of the "window" object, which represents the entire browser window:

window.status = "This is some text";

Using an input box to get text from the user

Just like in traditional windows applications, you can use an input box to get some text input from the user. The "prompt" function is all you need:

var name = prompt("What is your name?");
document.write("Hello " + name);

The prompt function accepts just one argument (the title of the input box), and returns the value entered into the text box. In the example above, you get the users name and store it in the "name" variable. You then use the "document.write" function to output their name into the browser window.

Using a message box to display text to the user

You can display a message box containing an OK button. These are great when you want to let the user know what is happening during their time on a particular page. You can use a message box to display the "name" variable from our previous example:

var name = prompt("What is your name?");
alert("Your name is: " + name);

The "alert" function takes one argument, which is the text to display inside of the message box.

Changing the title of the browser window

To change the title of a web browser's window, simply modify the "document.title" variable, like this:

document.title = "My new title";

One bad thing about the "document.title" variable is that it can only be manipulated in Microsoft Internet Explorer. Netscape's implementation of JavaScript doesn't allow for modification.

In Closing

As you can see from the examples in this article, JavaScript is a powerful scripting language that can be used to enhance a visitor's experience with our site. However, you shouldn't use JavaScript too much because in some cases it can annoy visitors and send them packing before your site even loads!

  About The Author
Mitchell Harper is the founder of DevArticles.com. DevArticles provides its visitors with useful, informative articles on ASP, PHP, and .NET, as well as heaps of tips and tricks that you wont find anywhere else! To see what it's all about, visit DevArticles right now.


Recommended Webmaster Apps & EBooks

Psychological Triggers
Advanced psychological tactics that will boggle your mind. Learn 30 ways to make prospects buy from you – and how you can use these tactics ethically to double or triple your sales.

The Insider's Guide To Dominating the Search Engines
Introduces you to revolutionary, "tried-and-tested" optimization strategies which will increase your website traffic by 10, 100, or even 1000 times ... GUARANTEED. See results start to materialize in as little as 2 days....and see significant results appear in just 1 month.

EzineAnnouncer - The Ultimate Ezine Promotion Tool
Explode Your Ezine With This Revolutionary New Piece of Software -- Results Are 100% Guaranteed! Now it's easier than ever to launch and promote your ezine. Auto-pilot ezine promotion software shows you where you need to be and does 80% of the work for you!

 

Tell your friends about SiteProNews!
Your E-mail
Friends E-mail
Your Message

 

  SiteProNews now reaches over 6 million Subscribers

Previous SPN Sites of the Day       Previous SPN Tips of the Day       Previous SPN WebMaster Apps of the Day      


©Copyright 2001 Jayde Online, Inc. All rights reserved. Web design by ControlV.