[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

<noscript> crashes Netscape

Posted on 2000-03-21
2
Medium Priority
?
233 Views
Last Modified: 2008-03-06
Here's an odd one.  I'm trying to use:

<script>
document.write ("<input type=\"button\" value=\"Submit JS\" onClick=\"validateFields(this.form.name);\">");
</script>
<noscript>
<input type="submit" value="Submit noJS">
</noscript>

to write the form's submit button out depending on whether or not the client has JavaScript turned on.  Simple enough right?  But nooooooo....for some reason if I include the <noscript> option it crashes Netscape (tested with 4.7).
It's part of a layer (<div>), has a little VBScript in the page for ASP, and quite a few includes in the page which have other layers and more VBScript in them.
So given all that, any ideas? I've tried writing it out with VBScript with the same result so I'm kinda stuck now.
0
Comment
Question by:WrrX
[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 1

Accepted Solution

by:
lambda earned 150 total points
ID: 2643039
<script language="JavaScript">
document.write ("<form>");
document.write ("<input type=\"button\" value=\"Submit JS\" onClick=\"validateFields(this.form.name);\">");
document.write ("</form>");
</script>
<noscript>
<form>
<input type="submit" value="Submit noJS">
</form>
</noscript>
0
 

Author Comment

by:WrrX
ID: 2643170
I have absolutely no idea what happened, but by putting in the language type (which I should have done anyway *slaps*), it seemed to solve the problem. Thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

649 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