?
Solved

<noscript> crashes Netscape

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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

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 implement server side field validation and display customized error messages to the client.
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

807 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