如何在现有网页中打开另一个网页? [英] how can i open another web page in existing web page?
本文介绍了如何在现有网页中打开另一个网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我是.Net的新手.
我想做的是:
如果我在一个网页上工作,并且想在第一个网页中打开另一个网页而又不打扰第一页中的数据字段,那该怎么办?
请帮帮我.
有文章吗?
谢谢
Hello Everybody
I am new in .Net.
What I want to do is:
If I am working on one web page and I want to open another web page in the first web page with out disturbing the data field in first page then how can I do that?
Please help me.
Is there an article on this?
Thank you
推荐答案
您好,请使用以下代码编写Javascript函数
Hi write Javascript function using below code
<br />
window.location("URL");<br />
URL在哪里是您要打开的页面
where URL is the page you want to open
您的问题还不清楚,但是,如果您要表达的是如何编写一个链接来打开页面,同时保持原始页面不变,那么您将成为目标空白链接将在新标签页中打开下一页.
像这样使用:
You question is a little unclear, but if you mean how can you write a link that opens a page whilst keeping the original page unchanged then a target blank link will open the next page in a new tab.
Use like this:
<A HREF="newwindow.html" TARGET="_blank">a new window</A>
希望有帮助.
Hope that helps.
这篇关于如何在现有网页中打开另一个网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文