开发者

window.open compatibility with Mac OSx versions (Safari)

开发者 https://www.devze.com 2023-03-28 05:25 出处:网络
@jackJoe my changes did not resolve my issue here is the rendered HTML for the Ima开发者_运维技巧ge Button and the window.open:

@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(&quot;ctl00$imbSubmit2&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, 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>")
0

精彩评论

暂无评论...
验证码 换一张
取 消