windows.open("URL","窗口名称","窗口外观设定"); <A href="javascript:window.open('webpage.asp','_self')"> 点击这里 </A> <a onclick="window.open('webpage.asp','_self');void 0" href="#"> 点击这里 <…
a标签中href=""的几种用法   标签: html / a标签 / javascript 46371 众所周知,a标签的最重要功能是实现超链接和锚点.而且,大多数人认为a标签最重要的作用是实现超链接,今天我刚好碰到a标签的一种写法<a href="javascript:;"></a>,所以就来整理下a标签中href的几种用法. 一.Js的几种调用方法(参考总结的) 1.a href="javascript:js_method()…
1.open,setTimeout,setInterval,clearInterval,clearTimeout <!DOCTYPE> <html> <head> <meta charset="UTF-8"></meta> <title></title> <script type="text/javascript"> // BOM:浏览器对象,broswer object…
<?php echo $_GET['action']; ?> <!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <title>Document</title> <script> function gogo(){ location.href = '?action=login'; } </scr…
href="要跳转目标链接"; href="#";当前页面不跳转(返回顶部) href="###";当前页面不跳转(同时不回到顶部) href="javascript:;";当前页面不跳转,返回空 href="javscript:void(0);";当前页面不跳转,无返回值 href="javasript:alert("hello world");" href=&qu…
http://blog.csdn.net/u010297791/article/details/52784879 这是分页上的 <?php function pages($page,$e_page) { $html='<a href="?page=1">index</a>'.' '; $pre=($page-1<=0)?$page:($page-1); $html.='<a href="?page='.$pre.'">…
无论在静态页面还是动态输出页面中window.location.href都是不错的用了跳转的实现方案   javascript中的location.href有很多种用法,主要如下. self.location.href="/url" 当前页面打开URL页面 location.href="/url" 当前页面打开URL页面 windows.location.href="/url" 当前页面打开URL页面,前面三个用法相同. this.locatio…
Javascript中的location.href有很多种用法,主要如下: self.location.href="/url" 当前页面打开URL页面 ocation.href="/url" 当前页面打开URL页面 windows.location.href="/url" 当前页面打开URL页面,前面三个用法相同. this.location.href="/url" 当前页面打开URL页面 parent.location.hr…
javascript中的location.href有很多种用法,主要如下. self.location.href=”/url” 当前页面打开URL页面 location.href=”/url” 当前页面打开URL页面 windows.location.href=”/url” 当前页面打开URL页面,前面三个用法相同. this.location.href=”/url” 当前页面打开URL页面 parent.location.href=”/url” 在父页面打开新页面 top.location.h…
self.location.href="/url" 当前页面打开URL页面: this.location.href="/url" 当前页面打开URL页面: parent.location.href="/url" 在父页面打开新页面: top.location.href="/url" 在顶层页面打开新页面. Javascript中的location.href有很多种用法,主要如下: self.location.href=&quo…