Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 30th, 2002, 09:46 AM
kojr kojr is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 51 kojr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
histry.back in js

PHP Code:
<html><head>
    <
script Language="JavaScript">
    
alert("please re-enterˇC")
    
history.back();
   
</script></head></html> 


The above code is telling the user's pressing and then go to previous page

What if pressing it will re-direct to another new page say index.htm and not the previous one

Thanks for any teaching and I know nothing of js..

Reply With Quote
  #2  
Old January 7th, 2003, 03:23 AM
rayz rayz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: europe
Posts: 255 rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 17 h 20 m 21 sec
Reputation Power: 7
i guess u better post that to the
html/javascript forum cause js has almost nothing to do with
java servlets, jsp...
cheers, jens

Reply With Quote
  #3  
Old January 8th, 2003, 02:26 AM
wra†h wra†h is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Cambridge
Posts: 6 wra†h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 22 sec
Reputation Power: 0
If I'm understanding you correctly, this is one way of redirecting a user with javascript
Code:
    <html><head>
    <script Language="JavaScript">
    <!--
    alert("please re-enter");
    location.href='index.html';
    //-->
   </script></head></html>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > histry.back in js


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway