---
title: "链接管理链接太长看不到删除按钮之解决办法"
author: "llade"
date: "2008-07-26T15:48:09Z"
tags: []
categories: ["非技术"]
slug: "untitled"
draft: false
lastmod: "2008-07-26T15:48:09Z"
id: 219827
url: "https://llade.iteye.com/blog/219827"
---

查看源代码：

```html

<tr id="ul7404_view" onmouseover="$(this).addClassName('mouse_over');" onmouseout="$(this).removeClassName('mouse_over');">
  <td>QQ交谈</td>
  <td><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=5a47860199865b77da1c2f9267cac60b35b1145046f55d0bf7c6522469864f6884d080ceafccaa77b378cd58ad10c81e638be6016bdf8caf">http://sighttp.qq.com/cgi-bin/check?sigkey=5a47860199865b77da1c2f9267cac60b35b1145046f55d0bf7c6522469864f6884d080ceafccaa77b378cd58ad10c81e638be6016bdf8caf</a></td>
  <td>Q me</td>
  <td>
    <a href="#" onclick="$('ul7404_view').hide();$('ul7404_edit').show(); return false;">编辑</a>
    <a href="/admin/user_links/7404" onclick="if (confirm('你确定要删除这个链接吗？')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);f.submit(); };return false;">删除</a>
  </td>
</tr>

```


可知：提交的action url是"/admin/user_links/7404”，指令是一个参数名为_method值为delete的input，试了一下直接在url后跟参数的方式，不行，改用post提交.
做一个简单的Html，action是你的博客域名加上述url：

```html

<html>
	<body>
	<form action="http://llade.iteye.com/admin/user_links/7404" method="post">
		<input type="text" name="_method" value="delete"/>
		<input type="submit" value="submit"/>
	</body>
</html>

```

存为html文件。
打开自己的博客管理界面（当然要先登录），在同一个IE窗口的地址栏输入刚才的那个文件的全路径名。出现一个提交的页面，按submit按钮即可删除因为链接过长而看不到删除按钮的链接。