Solved

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

Posted on 1997-06-10
2
492 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
[X]
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
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 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