Solved

<noscript> crashes Netscape

Posted on 2000-03-21
2
227 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 50 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

705 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