Getting past the specifics of your question, the general question was if there 
was a way to implement decision logic in HTML and the answer would be no.  One 
thing people forget is that HTML is not really a programming language, it is a 
text formatting process similar to the hidden control codes in your word 
processor.  Not that it can't be done within a HTML page, you just have to use 
an embedded programming language.

-----Original Message-----
From: Shannon O'Donnell [mailto:sodonnell@xxxxxxxxxxxxxxx]
Sent: Monday, June 23, 2003 8:53 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] HTML GOTO 

This may sound stupid...but I'm pretty sure I have a valid use for this

Is there an HTML equivalent of GOTO?

What I want to do is throw some JavaScript onto a page, and if certain
conditions are not true...I want to close the page/and/or jump around a
block of HTML code (code that is NOT part of the JavaScript).

Here's a code fragment that I want to perform:



<SCRIPT Language="JavaScript">
 if (document.refrrer != {
   document.write ("You DID NOT come from you are welcome here!");
  document.write("We do not allow eBay users to visit our website. Begone!");

<H1>Welcome Friend!</H!>

What I want to do is to put some kind of "goto" in that last block of code so 
that the remaining HTML is not executed. In other words... I don't want the 
"Welcome Friend" text to be displayed in this example.

Any ideas?  Window.close won't work becuase it's too easy for the user to just 
avoid closing teh window. 

Shannon O'Donnell

This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.