I have use below code to back for the previous page, but it\'s not working. the alert box still popup even i click ok on the page. actually there have 3 page include this windo
I would always avoid using alert()
, since it kills script in some Browsers. I would open()
a new window and ButtonElement.onclick
use location =
.
Note:
window
is implicit, so you don't need to write window.open()
or window.location
. Additionally, it's fine to leave off .href
when referring to location.href