Search:
www.rocket99.com : Technical Guides Sybase Oracle UNIX Javascript


Technical Guides
Sybase
Oracle
UNIX
Javascript




After Work

Highlife Adventures
The best club in Chicago
for Chicago Singles is Highlife Adventures!


Jersey Girl Shirts
Are you looking for a
Jersey Girl T-Shirt ?



Kyoto Sushi
in Chicago, on Lincoln Ave.
Moody's Pub
in Chicago, has great burgers
Skylark
in Chicago, on Halsted .. excellent Friday fish fry!


Javascript » Methods » Coding »

Loading a new page dynamically

     






/* Simple Example */


<script language="javascript">
<!--
function f_switch()
{
var loc_id = 0 ;
var newpage = "" ;

newpage = "http://www.netscape.com" ;

parent.location=newpage;

}
// -->
</script>




/* More Complex Example */

<html>
<head>
<script language="javascript">
<!--
function f_redirect(){
var url = document.location ; //capture the contents of the browser location
var temp = new String(url) ; //convert the browser location to a string
var url2 = temp.toLowerCase(); //convert the browser location to lower case

//search the browser location
if (url2.indexOf("carsdirect.com") >= 0) { // go to carsdirect
top.location='carsdirect/index.html';
}
else {
top.location='index.html';
}
}
// -->
</script>
<title></title>
</head>
<body onload="f_redirect()" $formtype=this>

<h2>Loading</h2>
Please wait ...

</body>
</html>













Javascript : Related Topics

Javascript : Methods : Incrementing a counter within an edit field
Javascript : Methods : Animation Example
Javascript : Methods : Image Mapping Example
Javascript : Methods : Redirecting Page Access
Javascript : Methods : Complex Application with Forms
Javascript : Methods : Image Viewer with Prev and Next Buttons
Javascript : Methods : Array Processing, Frameset Writes
Javascript : Methods : Javascript: Where it fits in HTML
Javascript : Methods : Accessing the cookie file
Javascript : Methods : Using include files
Javascript : Methods : Pure virtual call error
Javascript : Methods : Passing variables to windows
Javascript : Methods : Executing Dynamic Code
Javascript : Methods : Single line edit: Data entry issue
Javascript : Methods : Call CGI counter
Javascript : Methods : Dynamic Objects and Names
Javascript : Methods : Setting Focus to a Control During Load

Sybase Web Site
Sybase Mobile Web Site
Oracle Web Site





Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site




Copyright © 2008 Citisoft Inc All Rights Reserved.