Need page w/redirect to not be kept in history! -
11-19-2004
, 03:27 PM
I'm using the flash sniffer that comes with DW, which traps my users in my site
because it won't let them use the back button. I've heard that I can use
window.location.replace to keep this from happening, but frankly, I'm new to JS
and and having mucho problems. Maybe someone can give me a tip? Here's the
script I'm using. function MM_checkPlugin(plgIn, theURL, altURL, autoGo) {
//v4.0 var ok=false; document.MM_returnValue = false; with (navigator) if
(appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
ok=(plugins && plugins[plgIn]); } else if
(appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1 if
(plgIn.indexOf('Flash')!=-1 && window.MM_flash!=null)
ok=window.MM_flash; else if (plgIn.indexOf('Director')!=-1 &&
window.MM_dir!=null) ok=window.MM_dir; else ok=autoGo; } if (!ok)
theURL=altURL; if (theURL) window.location=theURL; } and the body tag: <body
bgcolor='#000000' onLoad='MM_checkPlugin('Shockwave
Flash','webdesignclass.html','no_flash_index.html' ,false);MM_preloadImages('vide
o_training/images/order-now-sparkle-over.gif');return document.MM_returnValue'>
Thanks! |