web.dev said the following on 7/28/2006 6:10 PM:
patricksabou...@hotmail.com wrote:
>On my site,
I have 2 methods of displaying my data:
1) HTML form with select-option element. (Jump to different page when
clicking "Go" button"
2) HTML table with a hyperlink.
What I would like to do is the following:
If JavaScript is disabled (or non existant on some browsers), to NOT
display the HTML form with select-option element.
This will help to keep the webpage cleaner for the viewers.
PS: I only have access to client-side scripting.
Thanks
Then you should use css to style it such that the form is initially not
visible.
No, you don't.
When javascript is available, the script should switch it back to being visible.
No, you have JS create it to begin with. Then, if scripting is enabled,
you see the select, otherwise you don't. And if the code to create the
select is in an external file, you don't have to download code that
never gets executed.
If you _only_ have access to client-side scripting, then it's not your
problem. It's the responsibility of the web page author.
Do you have any comprehension of the question asked? Go read it again.
It is quite obvious that he *is* the web page author.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/