I have made changes to my code to reflect what you suggested(I think) but the function called from the hyperlink still produces the warning. In the body tag of my HTML I have:
onbeforeunload = "testbul(true)"
In my function that opens another window I have:
Note: the above function is called from a hyperlink:
javascript:setModel
I just do a
test to replace the hyperlink with a general button and it works great so it must be the hyperlink is firing the onbeforeunload before the function setModel is fired. Any way around this?
My testbul function is:
[ November 20, 2008: Message edited by: Steve Dyke ]
[ November 20, 2008: Message edited by: Steve Dyke ]