java script redirect or forward (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: java script redirect or forward
|
Junaid (User)
Fresh Boarder
Posts: 1
|
|
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??
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
dan (Admin)
Admin
Posts: 179
|
|
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?
|
|
|
|
|
|
|
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.
|
Ripsoft (User)
Fresh Boarder
Posts: 4
|
|
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>
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|