PDA

View Full Version : refresh problem


Kal
03-31-2006, 12:44 PM
hi,

i have a form (page1) and once submitted it goes to page2, on page2 i have a button which takes you to page1 again, once this button is pressed is there anyway to refresh page1.

i ask this because on the form i have a password field which is auto generated, but it doesnt change unless you click the refrssh page.

any help would be good.

thanks in advance.

Davide Zanotti
03-31-2006, 01:52 PM
You can use location.reload()

Kal
03-31-2006, 02:00 PM
thats ok, mine aint to good either,

how do i go about coding this, does it need to be with the <body> tag?

konithomimo
03-31-2006, 06:03 PM
window.location.reload();

Kal
04-03-2006, 03:04 PM
using this just keeps the page refreshing in a loop,

<body onload="window.location.reload()">