Home >Web Front-end >HTML Tutorial >Pass parameters between two html pages_html/css_WEB-ITnose

Pass parameters between two html pages_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:39:37920browse

var href = document.URL;
href = decodeURI(href);
var oText1 = href.split("=")[1];


eg: a.html

local.href = 'www.aaa.com/index.php?a=1';

b.html

var href = document.URL;
href = decodeURI(href);
var oText1 = href.split("=")[1];

/ /Using the above code, oText1 = 1;

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn