Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

JavaScript: Alternative to Chromeless Windows


Leb i Sol

This topic is 7853 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 7853 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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