2 Replies Latest reply on Nov 9, 2009 9:54 AM by Adam Cameron.

    cflocation redirect

    chandra12345 Level 1

      Hi,

       

      i have written  follwing code in coldfusion page

       

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <title>Untitled Document</title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <script>
      function test()
      {
      location.href='test1.cfm';
      }
      </script>

       

      </head>

       

      <body onLoad="test()">

       

      <cflocation url="test.cfm" addtoken="no">

       

      </body>
      </html>

       

      while excuting this page cflocation url is excuting first not javascript url why this happens?

       

       

      Advance thanks