@jackJoe my changes did not resolve my issue here is the rendered HTML for the Ima开发者_运维技巧ge Button and the window.open:
<div id="ctl00_LoginPanel" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_imbSubmit2')" style="width:201px;">
I have successfully changed the defaultbutton for the panel when the user is a Safari user. The Image Button also shows up as an input type:
<input type="image" name="ctl00$imbSubmit2" id="ctl00_imbSubmit2" src="../images/Submitbutton.jpg" alt="Submit2" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$imbSubmit2", "", true, "", "", false, false))" style="border-width:0px;" />
Why doesn't this work in Safari??
Response.Write("<script>window.open('" + strURL + "');</script>")
Do I need to have it like this:
Response.Write("<script>javascript:window.open('" + strURL + "');</script>")
精彩评论