Absolutely!  You just write line the HTML code you want to condition....

Since someone else came up with this answer, I'll simply take credit... man am 
I a smartass... 

Andrew Borts / Webmaster
Seta Corporation
6400 East Rogers Circle
Boca Raton, FL 33499
E-mail: Andrewb@xxxxxxxxxxxxxxxxxxx 
Corporate web site http://www.setacorporation.com 
E-Commerce web site http://www.palmbeachjewelry.com

and also http://www.servicemerchandisejewelry.com
Amazon Store http://www.amazon.com/palmbeachjewelry
Voice: 561-994-2660 Ext. 2211 / Fax: 561-997-0774

 -----Original Message-----
From:   Eric Kempter [mailto:EKempter@xxxxxxxxxxxxxxx] 
Sent:   Monday, June 23, 2003 3:59 PM
To:     Web Enabling the AS400 / iSeries
Subject:        RE: [WEB400] HTML GOTO 


<HTML>
<BODY>
<SCRIPT Language="JavaScript">
if (document.referrer != www.ebay.com) 
{
document.write ("You DID NOT come from eBay...so you are welcome here!"); 
else 
alert("We do not allow eBay users to visit our website. Begone!");
document.close();
}
</SCRIPT>
<H1>Welcome Friend!</H!>
</BODY>
</HTML>


 -----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 
functionality:

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:
<HTML>
<BODY>
<SCRIPT Language="JavaScript">
if (document.refrrer != www.ebay.com) {
document.write ("You DID NOT come from eBay...so you are welcome here!"); 
else document.write("We do not allow eBay users to visit our website. Begone!");
 }
</SCRIPT>

<H1>Welcome Friend!</H!>
</BODY>
</HTML>


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,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.




_______________________________________________
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,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.





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-2024 by midrange.com 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.