April 3, 200322 yr Hello People! After spending some time and not wanting to use chromeless window I found this javascript working just as well. Simpy copy-paste this code and set your default page in FM to be (START.html) as this one: START.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>START</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) //v2.0 Dreamwaver native OpenBrowserWindow { window.open(theURL,winName,features); } function closeME() // function to self close this window { window.opener = self; window.close(); } //--> </script> </head> <body onLoad="MM_openBrWindow('Index.html','','scrollbars=yes,width=1024,height=768,top=0,left=0'); closeME()"> </body> </html> there....my little contribution
April 4, 200322 yr Author " JavaScript: Alternative to Chromeless Windows " ...not much.....less code...easier ( for me ) and I though someone might like an alternative solution...that's all
April 4, 200322 yr I've tested that and it doesn't work. It gets stuck on that first page. I don't know why.
April 4, 200322 yr Author gets stuck? deoes it open the Index.html file or nothing happens? I am using it now and no problems what so ever...IE5.5 and Mozilla..... re-start the browser if you just changed the default page to Start.html! here is the "Start.html" ... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>START</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) //v2.0 Dreamwaver native OpenBrowserWindow { window.open(theURL,winName,features); } function closeME() // function to self close this window { window.opener = self; window.close(); } //--> </script> </head> <body onLoad="MM_openBrWindow('Index.html','','scrollbars=yes,width=1024,height=768,top=0,left=0'); closeME()"> <table width="413" height="89" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#CCCCCC"> <tr> <td align="center"><p><font color="#FF6600" size="3" face="Verdana, Arial, Helvetica, sans-serif"> REDIRECTING USER <strong>>>></strong></font></p> </td> </tr> </table> </body> </html> ...... do you get any error? try it out here: http://books.ulv.edu/START.html
April 5, 200322 yr That is funny! Your web example works and on my machine the same browser get stuck on the START (redirecting) page BTW, reconsider the mouseover on links. That CSS which is going to BOLD is moving the whole page left or right. It is quite hard effect on page. Nicer will be change of background color and/or underline but more static.
April 5, 200322 yr Author i really don't know what to say : well...I hope someone can benifit from the post,sorry it doesn't work on you machine. is it a Mac IE that you used? I know ther are other ways to construct the OpenBrowserWindow javascript .:. maybe that is what is the problem....beats me. the CSS was for View--Small size font...but as you can see the system/www.page was not really advertised or put in a full deployment...maybe some day I deducate more time!
April 5, 200322 yr Maybe the blank winName is causing a problem. Try: window.open(theURL,features); Good Luck. Garry
April 5, 200322 yr I've tried both, with WinName and without. Nothing. IE 5.5 W2k I guess the problem is with JS execution. I was trying once to submit 2 forms with JS and it worked only if there was Alert box between them. So the syntax was OK but execution too fast to work.
April 5, 200322 yr Author maybe letting JS to be handeled by: http://java.sun.com/getjava/ would help? I really don't know! try not uing the function closeME() to see if your window would pop at all; slef closing could be times differntly then... p.s. Win2k IE 5.5 here as well--look into 5.5 update
April 6, 200322 yr Javascript is not related to Java nor Sun. One observation is this: onLoad="MM_openBrWindow('Index.html','','scrollbars=yes,width=1024,height=768,top=0,left=0'); closeME()"> try: onLoad="MM_openBrWindow('Index.html','','scrollbars=yes,width=1024,height=768,top=0,left=0'); closeME();"> Note the ";" after "closeME()" Worth a try. Garry
Create an account or sign in to comment