Solved

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

Posted on 1997-06-10
2
473 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
html input type 3 32
how to avoid redundand ajax calls 5 30
Browser Chrome downloads colored link 5 41
Help to align the buttons in a row 2 28
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

777 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