Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

JavaScript: Alternative to Chromeless Windows

Featured Replies

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 laugh.gif

What is the difference between this and chromeless?

  • Author

" JavaScript: Alternative to Chromeless Windows "

...not much.....less code...easier ( for me laugh.gif )

and I though someone might like an alternative solution...that's all

I've tested that and it doesn't work. It gets stuck on that first page.

I don't know why.

  • 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>&gt;&gt;&gt;</strong></font></p>

      </td>

  </tr>

</table>

</body>

</html>

...... do you get any error? frown.gif

try it out here:

http://books.ulv.edu/START.html

That is funny!

Your web example works and on my machine the same browser

get stuck on the START (redirecting) page frown.gif

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.

  • Author

i really don't know what to say frown.gif :

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!

Maybe the blank winName is causing a problem. Try:

window.open(theURL,features);

Good Luck.

Garry

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.

  • Author

maybe letting JS to be handeled by:

http://java.sun.com/getjava/

would help? I really don't know! frown.gif

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

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.