V
VanguardLH
If the user's web browser happens to go into a <NOSCRIPT>...</NOSCRIPT>
block (because scripting isn't supported or is disabled), I don't want
anything else of the HTML document rendered (as it would be superfluous
since the site demands the use of scripts). So I have something like (a
very simplistic model shown here):
<HTML>
<BODY>
<NOSCRIPT>
NOSCRIPT block code
</NOSCRIPT>
<BR /><HR />
Other HTML code
</BODY>
</HTML>
If scripting is disabled and the user visits this page, they'll see:
NOSCRIPT block code
Other HTML code
Nope, don't want anything outside the NOSCRIPT block to get rendered.
So I need something like:
<HTML>
<BODY>
<NOSCRIPT>
NOSCRIPT block code
{something here to *automatically* jump to skiptoend anchor)
</NOSCRIPT>
<BR /><HR />
Other HTML code
<A name="#skiptoend></A>
</BODY>
</HTML>
I used the concept of an anchor since that gives a location in the
document of where to jump. However, for the {something} statement, I
can't just use:
<A href="#skiptoend">Skip to End of Page</A>
since that would present the link but not actually jump to the anchor on
the page. The user would have to click and then it would be too late as
they would already see:
NOSCRIPT block code
/Skip to End of Page/ <-- a link
Other HTML code
I want only the NOSCRIPT block to get executed and nothing else that may
be later in the HTML document if scripting is disabled. Obviously it
can't be a script that does a goto equivalent command since this is a
NOSCRIPT block. I don't want halt rendering to present a hyperlink to
an anchor or alert box (the user shouldn't have to click on anything to
finish the rendering of the document when scripting is disabled). I
can't see an attribute that could be added in the anchor with href to
make an *automatic* jump to where the anchor is defined.
Either the simple non-scripted HTML code inside the NOSCRIPT block would
somehow terminate the document (so nothing thereafter gets executed) or
somehow does the equivalent of a goto command (which is why I thought of
an automatic jump to an anchor). Is there anything within simple
non-scripted HTML that will do this?
Or am I stuck with having to use scripting, if supported, to load a
different document and position the NOSCRIPT block at the end so it
happens to drop off by its position at the end of the page, as in:
<HTML>
<BODY>
<!-- If scripting is enabled, load other page. -->
<SCRIPT language="Javascript" type="text/javascript">
<!-- hide script code if not supported by web browser
window.location.href = "otherpage.htm";
// unhide -->
</SCRIPT>
<!-- If scripting is disabled, alert user. -->
<NOSCRIPT>
Your web browser does not support scripts
or support for scripts has been disabled.
</NOSCRIPT>
</BODY>
</HTML>
I'd rather keep it as one document (where the end of the NOSCRIPT block
somehow exits the document or automatically jumps to the end) rather
than having to load 2 of them (to eliminate falling through the NOSCRIPT
block to then render whatever is below it).
block (because scripting isn't supported or is disabled), I don't want
anything else of the HTML document rendered (as it would be superfluous
since the site demands the use of scripts). So I have something like (a
very simplistic model shown here):
<HTML>
<BODY>
<NOSCRIPT>
NOSCRIPT block code
</NOSCRIPT>
<BR /><HR />
Other HTML code
</BODY>
</HTML>
If scripting is disabled and the user visits this page, they'll see:
NOSCRIPT block code
Other HTML code
Nope, don't want anything outside the NOSCRIPT block to get rendered.
So I need something like:
<HTML>
<BODY>
<NOSCRIPT>
NOSCRIPT block code
{something here to *automatically* jump to skiptoend anchor)
</NOSCRIPT>
<BR /><HR />
Other HTML code
<A name="#skiptoend></A>
</BODY>
</HTML>
I used the concept of an anchor since that gives a location in the
document of where to jump. However, for the {something} statement, I
can't just use:
<A href="#skiptoend">Skip to End of Page</A>
since that would present the link but not actually jump to the anchor on
the page. The user would have to click and then it would be too late as
they would already see:
NOSCRIPT block code
/Skip to End of Page/ <-- a link
Other HTML code
I want only the NOSCRIPT block to get executed and nothing else that may
be later in the HTML document if scripting is disabled. Obviously it
can't be a script that does a goto equivalent command since this is a
NOSCRIPT block. I don't want halt rendering to present a hyperlink to
an anchor or alert box (the user shouldn't have to click on anything to
finish the rendering of the document when scripting is disabled). I
can't see an attribute that could be added in the anchor with href to
make an *automatic* jump to where the anchor is defined.
Either the simple non-scripted HTML code inside the NOSCRIPT block would
somehow terminate the document (so nothing thereafter gets executed) or
somehow does the equivalent of a goto command (which is why I thought of
an automatic jump to an anchor). Is there anything within simple
non-scripted HTML that will do this?
Or am I stuck with having to use scripting, if supported, to load a
different document and position the NOSCRIPT block at the end so it
happens to drop off by its position at the end of the page, as in:
<HTML>
<BODY>
<!-- If scripting is enabled, load other page. -->
<SCRIPT language="Javascript" type="text/javascript">
<!-- hide script code if not supported by web browser
window.location.href = "otherpage.htm";
// unhide -->
</SCRIPT>
<!-- If scripting is disabled, alert user. -->
<NOSCRIPT>
Your web browser does not support scripts
or support for scripts has been disabled.
</NOSCRIPT>
</BODY>
</HTML>
I'd rather keep it as one document (where the end of the NOSCRIPT block
somehow exits the document or automatically jumps to the end) rather
than having to load 2 of them (to eliminate falling through the NOSCRIPT
block to then render whatever is below it).