Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/432.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 通过showModalDialog()打开外部链接_C#_Javascript_Asp.net_.net - Fatal编程技术网

C# 通过showModalDialog()打开外部链接

C# 通过showModalDialog()打开外部链接,c#,javascript,asp.net,.net,C#,Javascript,Asp.net,.net,有没有办法通过showModalDialog函数打开外部链接 我的意思是,我想通过showModalDialog()在打开的弹出窗口中打开“www.google.com” 请回复。 谢谢是的,你可以 例如: window.showModalDialog(“http://stackoverflow.com/users/1310467/hatsoft");​ 如前一篇文章所述,您可以使用showModalDialog函数打开外部链接,但请记住,如果您的外部链接是跨域的,showModalDialo

有没有办法通过showModalDialog函数打开外部链接 我的意思是,我想通过showModalDialog()在打开的弹出窗口中打开“www.google.com”

请回复。 谢谢

是的,你可以

例如:


window.showModalDialog(“http://stackoverflow.com/users/1310467/hatsoft");​

如前一篇文章所述,您可以使用showModalDialog函数打开外部链接,但请记住,如果您的外部链接是跨域的,showModalDialog将不会返回任何结果值

<script language="javascript">
   window.showModalDialog("http://stackoverflow.com/users/1310467/hatsoft");​
</script>