• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Code Variants

In a global .js file, the code would look as it does above. When you're inserting the script on an individual page, naturally, you would type it between <head> and </head>. In XHTML 1 Transitional documents, the script would read as follows:

<script type="text/javascript" language="javascript">
<!--  //
if (!document.getElementById) {
    window.location =
        " http://www.somesite.com/somepage/"
}
     // -->
</script>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint