mehran63
چهارشنبه 26 مهر 1391, 21:13 عصر
کد زیر یک Button است که تابع OpenChild() را فراخوانی میکند
چطور می توانم همین کار را با و سیله یک لینک انجام دهم؟
در واقع به جای Button به وسیله لینک باید این تابع را اجرا کنم
<P><BUTTON onclick="OpenChild()" type="button">Open Child Window</BUTTON></P>
<script language="javascript">
function OpenChild() {
var WinSettings = "center:yes;resizable:no;dialogHeight:300px"
// ALTER BELOW LINE - supply correct URL for Child Form
var MyArgs = window.showModalDialog("http://localhost:3933/myweb/Default2.aspx", MyArgs, WinSettings);
}
</script>
چطور می توانم همین کار را با و سیله یک لینک انجام دهم؟
در واقع به جای Button به وسیله لینک باید این تابع را اجرا کنم
<P><BUTTON onclick="OpenChild()" type="button">Open Child Window</BUTTON></P>
<script language="javascript">
function OpenChild() {
var WinSettings = "center:yes;resizable:no;dialogHeight:300px"
// ALTER BELOW LINE - supply correct URL for Child Form
var MyArgs = window.showModalDialog("http://localhost:3933/myweb/Default2.aspx", MyArgs, WinSettings);
}
</script>