Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

javascript   MainWindow=window.open(str,'MainWindow','scrollbars=no

Posted on 1997-06-10
2
479 Views
Last Modified: 2006-11-17
I need to add some javascript to the one below
that will go to australian_start.html for non
javascript browsers and not change the window.

doghead

<SCRIPT LANGUAGE="JavaScript">
<!--
str = "australian_start.html";
MainWindow=window.open(str,'MainWindow','scrollbars=no,resizeable=no,status=no,location=no,toolbar=yes,menubar=no')
parent.window.close()
// -->
</SCRIPT>
0
Comment
Question by:doghead
2 Comments
 
LVL 4

Accepted Solution

by:
jshamlin earned 50 total points
ID: 1836442
If a browser is non-javascript, then you can't get it to obey *any* javascript commands.  But that doens't mean you're completely stuck ...

Your best bet is to point a regular link to "australian_start.html" and, in the head of that document, include the following function onLoad...

<SCRIPT LANGUAGE="javascript">
this.location='page_for_script_browsers.htm';
</SCRIPT>

Another option would be to script-comment out a meta-refresh ...

<HEAD>
<SCRIPT LANGUAGE="javascript">
<!--
// --> <META HTTP-EQUIVE="refresh" CONTENT=0;  URL="http://www.yourdomain.com/nonjavascriptpage.html"> <!--
// -->
</SCRIPT>
</HEAD>

This is a bit tricky to follow - but basically, the "refresh" is commented out for javascript-capable browsers, whereas script-incapable browsers would interpret it and move on to the specified page.

0
 

Expert Comment

by:Levin
ID: 1836443
HTTP-EQUIV is misspelled! (Not EQUIVE)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question