Programming Help, OS System Help, Articles, Videos, Books-Web Dot Dev
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: java script redirect or forward
#305
Junaid (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
java script redirect or forward 1 Year, 7 Months ago Karma: 0  
Hi,

I want the java script to redirect the user to some page if the user does not take any action on the current page for say 10 seconds??
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#306
dan (Admin)
Admin
Posts: 179
graph
User Offline Click here to see the profile of this user
Re:java script redirect or forward 1 Year, 7 Months ago Karma: 5  
well it might depends, if the site is just html formal u can do it in javascript and also u can use dreamweaver, it has some good features to do this, but if u use a website with the php format u can do it in php. so what type of format is your web site?
 
Report to moderator   Logged Logged  
 
I wouldn't recommend sex- drinks- or Mac for everyone but they work for me.

Programming Help, OS System Help, Articles, Videos, Tutorials, Books-Web Dot Dev http://www.webdotdev.com
  The administrator has disabled public write access.
#307
Ripsoft (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:java script redirect or forward 1 Year, 7 Months ago Karma: 0  
Try following script..

this will redirect to goole home page.. after 10 seconds.. if the user doesn't take any action..


<html>
<script>

function func_time(){

setTimeout("redirect()", 10000);

}
function redirect(){
top.location="http://google.com";
}

</script>
<body onload="func_time()">
this is earlier test
</body>
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop