Solved

<noscript> crashes Netscape

Posted on 2000-03-21
2
223 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 50 total points
Comment Utility
<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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now