Forum Moderators: travelin cat

Message Too Old, No Replies

OnClick Javascript doesn't work in Safari

         

ovrdrvn

10:23 pm on May 28, 2005 (gmt 0)

10+ Year Member



This code in our .NET site doesn't return Safari users to the prior page (cached list) as it does for Windows IE users. Help appreciated:

<input type="submit" name="btnSubmit" value="Save Changes" id="btnSubmit" class="buttonStyle" />
&nbsp;&nbsp;&nbsp;&nbsp; <input class="buttonStyle" onclick="javascript:window.location.href('ShowPresenters.aspx');"
type="button" value="Back to Presenters Page">

dcrombie

11:46 am on May 29, 2005 (gmt 0)



Your code isn't valid. I'm surprised that it even works in Explorer (well, not that surprised). Try something like this:

onclick="self.location.href='ShowPresenters.aspx';"

ovrdrvn

1:57 pm on May 29, 2005 (gmt 0)

10+ Year Member



The problem is, this convention in windows refreshes the data, with the code as you stated, the it will return to the right window...but how do I have it function exactly the same. Possibly to do with window.opener?