?
Solved

<noscript> crashes Netscape

Posted on 2000-03-21
2
Medium Priority
?
230 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
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…
Suggested Courses

771 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