href="javascript:" 这个链接什么意思?
解决方案 »
- 【经验分享】Javascript几个原创小技巧。
- 请教关于数组里键用变量的情况
- ----------------一个会让你纠结很久的问题.-----------------------
- 发一个UE的宏,查找方法定义和格式化
- 如何动态改变SELECT OPTION 的风格?
- window.location.href 与 windows.location.href 终极区别是什么?
- select下拉框刷新以后回显值的问题
- javascript如何载入jsp文件
- 怎么让showModalDialog在本窗口打开链接,而不弹出新窗口??急!~~~
- 大虾帮忙,关于eval的问题,解决立即给分!!!
- 莫名其妙,求指点:引用文件中数据的问题
- 求一个J-Qurery弹出层实例
javascript:void(0);
等于在地址里输入 。
::::::: 删除
::::::: 删除
::::::: 删除 发图不方便,就是这个功能,点击添加下面增加一行,点删除,就删除这段代码不是很懂,要怎样实现?
<td align="left" >
<span id="mac_0" class="mac_0" name="mac_0"></span>
<a href="javascript:" id="MAC_add">添加</a>
<span id="msg_mac" style="COLOR: #000000">* mac地址由大写字母A到F或者数字组成</span>
<script type="text/javascript">
var mac_0=new MacBox("mac_0");
document.getElementById("mac_0").innerHTML=mac_0;
mac_0.focus(1);//
</script>
</td>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>Untitled Document</title>
<script type="text/javascript" src="<%=path%>/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
var i = 2;
$('#addTextImput').click(function(){
if(i < 100) {
$('#main').append('<div><input type="text" name="text" + i + ""/><input type="button" id="del-text" value="鍒犻櫎"></div>');
i++;
} else {
alert("鏈€澶氬姞100涓?);
}
});
$('.del-text').live('click',function(){
$(this).parent().remove();
i--;
});
$('#del-text').live('click',function(){
$(this).parent().remove();
i--;
});
});
</script>
</head> <body>
<div id="main">
<div>
<input type="text" name="text1" />
<input type="button" id="addTextImput" value="娣诲姞" />
</div>
</div>
<br />
<input onclick="document.all.WebBrowser.ExecWB(1,1)" type="button" value="鎵撳紑" name="Button1"/>
<input onclick="document.all.WebBrowser.ExecWB(4,1)" type="button" value="鍙﹀瓨涓? name="Button2"/>
<input onclick="document.all.WebBrowser.ExecWB(10,1)" type="button" value="灞炴€? name="Button3"/>
<input onclick="document.all.WebBrowser.ExecWB(6,1)" type="button" value="鎵撳嵃" name="Button"/>
<input onclick="document.all.WebBrowser.ExecWB(8,1)" type="button" value="椤甸潰璁剧疆" name="Button4"/>
<input onclick="window.location.reload()" type="button" value="鍒锋柊" name="refresh"/><br/>
<input onclick="window.external.ImportExportFavorites(true,'');" type="button" value="瀵煎叆鏀惰棌澶? name="Button5"/>
<input onclick="window.external.ImportExportFavorites(false,'');" type="button" value="瀵煎嚭鏀惰棌澶? name="Button32"/>
<input onclick="window.external.AddFavorite(location.href, document.title)" type="button" value="鍔犲叆鏀跺す"name="Button22"/>
<input onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type="button" value="鏁寸悊鏀惰棌澶? name="Submit2"/>
<input onclick='window.location="view-source:" + window.location.href' type="button" value="鏌ョ湅婧愭枃浠? name="Button7"/>
<input onclick="window.external.ShowBrowserUI('LanguageDialog', null)" type="button" value="璇█璁剧疆" name="Button6"/>
<input onclick="document.execCommand('Cut')" type="button" value="鍓垏"/><br/>
<input onclick="document.execCommand('Copy')" type="button" value="鎷疯礉"/>
<input onclick="document.execCommand('Paste')" type="button" value="绮樿创"/>
<input onclick="document.execCommand('Undo')" type="button" value="鎾ゆ秷"/>
<input onclick="document.execCommand('Delete')" type="button" value="鍒犻櫎"/><br/>
<input onclick="document.execCommand('Bold')" type="button" value="榛戜綋"/>
<input onclick="document.execCommand('Italic')" type="button" value="鏂滀綋"/>
<input onclick="document.execCommand('Underline')" type="button" value="涓嬪垝绾?/>
<input onclick="document.execCommand('stop')" type="button" value="鍋滄"/><br/>
<input onclick="document.execCommand('SaveAs')" type="button" value="淇濆瓨"/>
<input onclick="document.execCommand('Saveas',false,'c:\\Autorun.inf')" type="button" value="鍙﹀瓨涓?/>
<input onclick="document.execCommand('FontName',false,fn)" type="button" value="瀛椾綋"/>
<input onclick="document.execCommand('FontSize',false,fs)" type="button" value="瀛椾綋澶у皬"/>
<input onclick="document.execCommand('refresh',false,0)" type="button" value="鍒锋柊"/><br/>
<input onclick="window.location.reload()" type="button" value="鍒锋柊"/><br/>
<input onclick="history.go(1)" type="button" value="鍓嶈繘"/>
<input onclick="history.go(-1)" type="button" value="鍚庨€€"/>
<input onclick="history.forward()" type="button" value="鍓嶈繘"/>
<input onclick="history.back()" type="button" value="鍚庨€€"/><br/>
<input type="button" value="寮瑰嚭鍥哄畾绐楀彛" onclick="javascript:window.open('#','','scrollbars=yes,width=600,height=200')" />
<input type="button" value="娌℃湁鎻愮ず鍏抽棴" onclick="window.opener=null;window.close();" />
<input type="button" value="鐐瑰嚮杩涘叆鍙︿竴椤甸潰" onclick="window.location.href=''" />
<input type="button" value="杩斿洖涓婁竴椤? onclick="javascript:history.go(-1);" /> </body>
</html>