5 Replies Latest reply: Feb 6, 2013 3:44 AM by VideoFlashLondon RSS

    Enabling Browser Back Button

    BearHNC Community Member

      Hello,

      I have a flash site and I would like to have the browser back button greyed out (enabled) to help user elivate confusion. I know this can be done because I have seen it on websites I just don't know how can anyone help me? I am using Dreamweaver CS3, if that helps.

      Thanks in advanced

        • 1. Re: Enabling Browser Back Button
          Zabeth69 CommunityMVP

          Don't know if it's possible, or not, but DON'T MESS WITH THE USER'S BROWSER SETTINGS!!!

           

          If you don't want the user to employ the Browser's back button, give them a more attractive alternative.

           

          Beth

          • 2. Re: Enabling Browser Back Button
            Nancy O. CommunityMVP

            I have a flash site and I would like to have the browser back button greyed out (enabled) to help user elivate confusion.

             

            Well, you've certainly elevated my confusion. "Grayed out" usually means the feature is DISABLED;  not enabled.   So which is it?  Do you want to disable or enable the browser Back function (aka  history tools)?  And how will this help alleviate user confusion?  Maybe if you posted a URL to your site, it would help make things  clearer for us...

             

             

            Nancy O.
            Alt-Web Design & Publishing
            Web | Graphics | Print | Media  Specialists
            www.alt-web.com/
            www.twitter.com/altweb
            www.alt-web.blogspot.com

            • 3. Re: Enabling Browser Back Button
              BearHNC Community Member

              Sorry didn't mean to confuse you, Friday was a long day, I want to disable the back button. To be honest I don't really like the idea of doing this, but my boss wants it this way, so be it. The site isn't live so a link won't do any good.  Here is the code I had found something that siad would work but when I viewed it on our mirror site it didn't so maybe you can help me find where I went wrong.

              Thanks,

               

              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><meta name="keywords" content="modular mining, modular mining systems, modular, mmsi, modular mining system, mmsi.com, modular mining systems inc, modular mining tucson, modular mining systems, inc, minecare, modular dispatch, intellimine, dispatch mining, modular minecare, modular dispatch system, mine dispatch, dispatch mine, mining dispatch, dispatch modular, modular - dispatch, modular mining dispatch, dispatcsystem mining, mine dispatch systems, modular intellimine, modular mining dispatch system, mining dispatch system, truck dispatch system, modular mining minecare, mine dispatch system, gps systems, fleet gps tracking, real time gps tracking, gps tracking system, gps tracking software, gps equipment, high precision gps, gps fleet management, fleet management, vehicle tracking, equipment tracking system, vehicle tracking system, global positioning systems, position tracking, asset management software, asset health, autonomous haul truck, autonomous, information management, performance management, mining jobs, coal mining,gold mining, copper mining, mining, optimization, proximity detection, machine guidance, production tracking, vital signs monitoring">
              <title>Modular Mining Systems Website</title>
              <script language="javascript">AC_FL_RunContent = 0;</script>
              <script>
              function backButtonOverride()
              {
                // Work around a Safari bug
                // that sometimes produces a blank page
                setTimeout("backButtonOverrideBody()", 1);

               

              }

               

              function backButtonOverrideBody()
              {
                // Works if we backed up to get here
                try {
                  history.forward();
                } catch (e) {
                  // OK to ignore
                }
                // Every quarter-second, try again. The only
                // guaranteed method for Opera, Firefox,
                // and Safari, which don't always call
                // onLoad but *do* resume any timers when
                // returning to a page
                setTimeout("backButtonOverrideBody()", 500);
              }
              </script>
              <script src="AC_RunActiveContent.js" language="javascript"></script>

               

              <style type="text/css">

               

              body {
                  margin-top: 0px;
                  background-image: url(images/gradientRepeat.jpg);
                  background-color: #3C4852;
                  background-repeat: repeat-x;
              }
              #container {
                  width: 800px; /* to fit in an 800px wide browser */
                  margin: 0 auto; /* no top or bottom margin and auto left-right */
              border: solid 1px #000000;
                 
              }

               

              </style></head>

               

              <body>
              <div id="container">
              <!--url's used in the movie-->
              <!--text used in the movie-->
              <!-- saved from url=(0013)about:internet -->

               


              <script language="javascript">
                  if (AC_FL_RunContent == 0) {
                      alert("This page requires AC_RunActiveContent.js.");
                  } else {
                      AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','widt h','800','height','645','id','ModularWebsite','align','middle','src','ProgressBar','qualit y','high','bgcolor','#cccccc','name','ModularWebsite','allowscriptaccess','sameDomain','al lowfullscreen','true','pluginspage','http://www.macromedia.com/go/getflashplayer','movie', 'ProgressBar' ); //end AC code
                  }
              </script>
              <noscript>
              <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="800" height="645" id="ModularWebsite" align="middle">
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="allowFullScreen" value="true" />
                <param name="movie" value="ProgressBar.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#cccccc" />
                <embed src="ProgressBar.swf" quality="high" bgcolor="#cccccc" width="800" height="645" name="ModularWebsite" align="middle" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
              </object>
              </noscript>
              </div>
              </body>
              </html>

              • 4. Re: Enabling Browser Back Button
                Nancy O. CommunityMVP

                FYI there is no 100% reliable way of disabling the Back button.  The best you can do is make it harder for people to find an active one. But anyone with a little common sense can defeat this using "right click"  or their  "History Menu."

                 

                http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911

                 

                 

                Nancy O.
                Alt-Web Design & Publishing
                Web | Graphics | Print | Media  Specialists
                www.alt-web.com/
                www.twitter.com/altweb
                www.alt-web.blogspot.com

                • 5. Re: Enabling Browser Back Button
                  VideoFlashLondon

                  It's recommended to use SWFAddress. Look at the following tutorial:

                  http://fcontheweb.com/articles/swfaddress_as3/

                   

                  Working now on implementation for fleet management website.